From c86e5b244fb10b8daf1cfc4466ca5a8b92715a0c Mon Sep 17 00:00:00 2001 From: Audrey Tang Date: Sun, 10 Mar 2024 10:48:14 +0800 Subject: [PATCH] * add workflow --- .github/workflows/main.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..4d381e2e --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,32 @@ +name: Build Book + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v2 +# - name: Install dependencies +# run: | +# # Install necessary dependencies (e.g., Perl, Docker) +# perl scripts/make-book.pl + - name: Generate book files + run: | + perl scripts/make-book.pl + - name: Upload artifacts + uses: actions/upload-artifact@v2 + with: + name: book-files + path: | + Plurality-english.pdf + Plurality-english.epub + - uses: ncipollo/release-action@v1 + with: + artifacts: "*.pdf,*.epub" + token: ${{ secrets.RELEASE_TOKEN }}