2024-01-12 15:02:50 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- v**
|
|
|
|
jobs:
|
|
|
|
build-artifacts:
|
|
|
|
runs-on: docker
|
|
|
|
steps:
|
|
|
|
- uses: https://code.forgejo.org/actions/checkout@v3
|
|
|
|
- id: build
|
|
|
|
run: |
|
2024-09-08 10:45:38 +00:00
|
|
|
echo "@fontawesome:registry=https://git.serguzim.me/api/packages/fontawesome/npm/" > .npmrc
|
|
|
|
echo "//git.serguzim.me/api/packages/fontawesome/npm/:_authToken=${{ secrets.FORGEJO_TOKEN }}" >> .npmrc
|
2024-01-12 15:02:50 +00:00
|
|
|
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 }}
|