diff --git a/.forgejo/workflows/make.yml b/.forgejo/workflows/make.yml new file mode 100644 index 0000000..2607ca6 --- /dev/null +++ b/.forgejo/workflows/make.yml @@ -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 diff --git a/pack.zip b/pack.zip deleted file mode 100644 index 9135c7a..0000000 Binary files a/pack.zip and /dev/null differ