From 9df44f066f7de61aa12efc4bd76f9e403a19a8db Mon Sep 17 00:00:00 2001 From: Hammy <58985301+sgoudham@users.noreply.github.com> Date: Mon, 23 Sep 2024 02:26:37 +0100 Subject: [PATCH] ci: switch to new gh pages workflow (#12) --- .github/workflows/deploy.yml | 27 +++++++++++++++++++++++++++ .github/workflows/gh-pages.yml | 21 --------------------- 2 files changed, 27 insertions(+), 21 deletions(-) create mode 100644 .github/workflows/deploy.yml delete mode 100644 .github/workflows/gh-pages.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..49ef679 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,27 @@ +name: Deploy + +on: + workflow_dispatch: + push: + branches: [main] + +jobs: + deploy: + runs-on: ubuntu-latest + permissions: + id-token: write + pages: write + environment: + name: github-pages + url: ${{ steps.deploy.outputs.page_url }} + steps: + - uses: actions/checkout@v4 + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: "themes/" + + - name: Deploy artifact to GitHub Pages + id: deploy + uses: actions/deploy-pages@v4 diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml deleted file mode 100644 index 8b68b5c..0000000 --- a/.github/workflows/gh-pages.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: GitHub Pages - -on: - push: - branches: - - main - -jobs: - deploy: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Deploy - uses: peaceiris/actions-gh-pages@v4 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - cname: themepark.catppuccin.com - publish_dir: ./themes - user_name: "github-actions[bot]" - user_email: "github-actions[bot]@users.noreply.github.com"