Change ci system from woodpecker to actions
All checks were successful
/ build-artifacts (push) Successful in 1m20s

This commit is contained in:
Tobias Reisinger 2024-01-12 16:02:50 +01:00
parent 159963faa7
commit 6f6c8981f9
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
3 changed files with 29 additions and 47 deletions

View file

@ -0,0 +1,29 @@
on:
push:
tags:
- v**
jobs:
build-artifacts:
runs-on: docker
steps:
- uses: https://code.forgejo.org/actions/checkout@v3
- id: build
run: |
echo "@fortawesome:registry=https://npm.fontawesome.com/" > .npmrc
echo "//npm.fontawesome.com/:_authToken=${{ secrets.FONTAWESOME_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@v1
with:
direction: upload
release-dir: /tmp/release-dir
token: ${{ github.token }}