From ee783f15c051a0054845da68d022ae2f9a18eb03 Mon Sep 17 00:00:00 2001 From: Thomas Nordquist Date: Sat, 11 May 2024 21:44:28 +0200 Subject: [PATCH] chore: move website update to separate release action --- .../workflows/{cd.yml => platform-builds.yml} | 14 +------------- .github/workflows/{ci.yml => tests.yml} | 0 .github/workflows/update-website.yml | 18 ++++++++++++++++++ 3 files changed, 19 insertions(+), 13 deletions(-) rename .github/workflows/{cd.yml => platform-builds.yml} (79%) rename .github/workflows/{ci.yml => tests.yml} (100%) create mode 100644 .github/workflows/update-website.yml diff --git a/.github/workflows/cd.yml b/.github/workflows/platform-builds.yml similarity index 79% rename from .github/workflows/cd.yml rename to .github/workflows/platform-builds.yml index 5758a4f..5d10d89 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/platform-builds.yml @@ -46,16 +46,4 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }} - update-readme: - needs: build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - ref: gh-pages - - uses: actions/setup-node@v4 - with: - node-version: 20 - - run: npm install - - run: npm run readme - - uses: stefanzweifel/git-auto-commit-action@v5 + \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/tests.yml similarity index 100% rename from .github/workflows/ci.yml rename to .github/workflows/tests.yml diff --git a/.github/workflows/update-website.yml b/.github/workflows/update-website.yml new file mode 100644 index 0000000..fc17660 --- /dev/null +++ b/.github/workflows/update-website.yml @@ -0,0 +1,18 @@ +name: Update Website + +on: release + +jobs: + update-website: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + ref: gh-pages + - uses: actions/setup-node@v4 + with: + node-version: 20 + - run: npm install + - run: npm run readme + - uses: stefanzweifel/git-auto-commit-action@v5