From 4615325a55e1e34e4477489b8c02b83b4b23d1bc Mon Sep 17 00:00:00 2001 From: Charles Martin Date: Wed, 7 Sep 2022 23:12:01 +1000 Subject: [PATCH] added build and release actions --- .github/workflows/static.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index bbb60de..3fdac61 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -42,3 +42,35 @@ jobs: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v1 + + + upload-release: + runs-on: ubuntu-latest + needs: [build] + steps: + - name: checkout + uses: actions/checkout@v2 + - name: download artifacts + uses: actions/download-artifact@v2 + - name: display structure of downloaded files + run: ls -R + - name: release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: | + artifact/nime_papers.bib + artifact/nime_music.bib + artifact/nime_installations.bib + + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: build combined files + run: ./generate_combined_files.sh + - name: upload artifact + uses: actions/upload-artifact@v2.3.1 + with: + path: release/ \ No newline at end of file