reitanlage-oranienburg/.forgejo/workflows/release.yaml
Tobias Reisinger bf13427b11
Some checks failed
/ build-artifacts (push) Failing after 1m19s
/ deploy (push) Has been skipped
Update forgejo release workflow
2026-11-09 00:30:22 +01:00

42 lines
1.3 KiB
YAML

on:
push:
tags:
- v**
jobs:
build-artifacts:
runs-on: docker
steps:
- uses: https://code.forgejo.org/actions/checkout@v3
- id: build
run: |
echo "@fontawesome:registry=https://git.serguzim.me/api/packages/fontawesome/npm/" > .npmrc
echo "//git.serguzim.me/api/packages/fontawesome/npm/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc
mkdir /tmp/release-dir
npm install
npm run production
git add -f dist/
git stash
git config --global --add safe.directory ${{ github.workspace }}
git archive --format=zip 'stash@{0}' -o /tmp/release-dir/reitanlage-oranienburg-${{ github.ref_name }}.zip --prefix=reitanlage-oranienburg/
shell: bash
- uses: https://code.forgejo.org/actions/forgejo-release@v2
with:
direction: upload
release-dir: /tmp/release-dir
token: ${{ github.token }}
deploy:
runs-on: docker
needs: build-artifacts
steps:
- id: Run deploy webhook
run: |
curl -vLX POST \
-H "Content-Type: application/json" \
-H "X-Auth-Token: ${{ secrets.DEPLOY_WEBHOOK_TOKEN }}" \
-d '{"theme_version": "${{ github.ref_name }}"}' \
"${{ secrets.DEPLOY_WEBHOOK_URL }}"
shell: bash