From d71b7f7b06e317c2d23eb3abfd50ba119e32bdf8 Mon Sep 17 00:00:00 2001 From: Sergio Ribera <56278796+SergioRibera@users.noreply.github.com> Date: Sat, 3 Aug 2024 17:16:57 -0400 Subject: [PATCH 1/3] ci: add install preview bin step --- .github/workflows/gen_preview.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gen_preview.yml b/.github/workflows/gen_preview.yml index eed2b52..903a547 100644 --- a/.github/workflows/gen_preview.yml +++ b/.github/workflows/gen_preview.yml @@ -25,7 +25,8 @@ jobs: persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token. fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository. # Download bin of gen_preview - # TODO + - name: Install preview bin + run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/RustLangES/rustmap/releases/download/v0.2.0/preview-installer.sh | sh - name: Get changed files run: | From 9eabb327e69ce4ae218e489418164356f3e5a72a Mon Sep 17 00:00:00 2001 From: Sergio Ribera <56278796+SergioRibera@users.noreply.github.com> Date: Sat, 3 Aug 2024 17:17:30 -0400 Subject: [PATCH 2/3] ci: fix changelog fail --- .github/workflows/changelog.yml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 704505f..768cecf 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -26,12 +26,3 @@ jobs: OUTPUT: CHANGELOG.md GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_REPO: ${{ github.repository }} - - - name: Commit - run: | - git config user.name 'github-actions[bot]' - git config user.email 'github-actions[bot]@users.noreply.github.com' - set +e - git add CHANGELOG.md - git commit -m "Update changelog" - git push origin main From c8d643009d5dae95e0238ad33bd8e68748b4866a Mon Sep 17 00:00:00 2001 From: Sergio Ribera <56278796+SergioRibera@users.noreply.github.com> Date: Sun, 4 Aug 2024 20:53:50 -0400 Subject: [PATCH 3/3] ci: fix deploy --- .github/workflows/deploy.yml | 2 +- .github/workflows/pr-preview.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 93c38e4..2fca23c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -39,7 +39,7 @@ jobs: with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - command: pages deploy ./dist --project-name=rustmap + command: deploy ./dist --project-name=rustmap # secrets: | # YOUR_SECRET # YOUR_OTHER_SECRET diff --git a/.github/workflows/pr-preview.yml b/.github/workflows/pr-preview.yml index 4cd4d18..6c2d8f0 100644 --- a/.github/workflows/pr-preview.yml +++ b/.github/workflows/pr-preview.yml @@ -71,7 +71,7 @@ jobs: with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - command: pages deploy ./dist --project-name=rustmap --branch "${{ env.BRANCH_NAME }}" + command: deploy ./dist --project-name=rustmap --branch "${{ env.BRANCH_NAME }}" - name: Extract hash from CF url Deploy run: |