parent
d5d5ff1242
commit
f952f07641
2 changed files with 31 additions and 0 deletions
31
.forgejo/workflows/make.yml
Normal file
31
.forgejo/workflows/make.yml
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
name: Publish
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish-prerelease:
|
||||||
|
name: "Publish"
|
||||||
|
runs-on: [ubuntu-latest]
|
||||||
|
steps:
|
||||||
|
- name: Check out code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
path: data
|
||||||
|
|
||||||
|
- name: Set outputs
|
||||||
|
id: vars
|
||||||
|
run: cd data;echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: Make archive
|
||||||
|
shell: bash
|
||||||
|
run: mkdir dist;cd data;zip -0 ../dist/pack.zip *
|
||||||
|
|
||||||
|
- uses: actions/forgejo-release@v2
|
||||||
|
with:
|
||||||
|
direction: upload
|
||||||
|
tag: ${{ github.ref_name }}-${{ steps.vars.outputs.sha_short }}
|
||||||
|
token: ${{ secrets.FORGEJO_TOKEN }}
|
||||||
|
release-dir: "dist"
|
||||||
|
prerelease: false
|
||||||
|
makeLatest: true
|
BIN
pack.zip
BIN
pack.zip
Binary file not shown.
Loading…
Add table
Reference in a new issue