From 3005238ad56710c96d8f8906adf42553e34c1014 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Pacana?= Date: Wed, 17 Jul 2024 23:16:55 +0200 Subject: [PATCH] Fuck netlify in particular --- .github/workflows/publish.yml | 44 +++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..7d3e570 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,44 @@ +name: publish +on: + workflow_dispatch: + push: + branches: + - master +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: 3.3 + bundler-cache: true + - run: bin/build + - run: | + tar \ + --dereference --hard-dereference \ + --directory "output" \ + -cf "$RUNNER_TEMP/artifact.tar" \ + --exclude=.git \ + --exclude=.github \ + . + - uses: actions/upload-artifact@v4 + with: + name: site + path: ${{ runner.temp }}/artifact.tar + retention-days: 1 + if-no-files-found: error + publish: + runs-on: ubuntu-latest + needs: build + permissions: + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - uses: actions/deploy-pages@v4 + id: deployment + with: + artifact_name: site