Skip to content

Commit

Permalink
Merge pull request #17 from RustLangES/fix_gen_image
Browse files Browse the repository at this point in the history
[CI] Install preview bin from Releases
  • Loading branch information
SergioRibera committed Aug 5, 2024
2 parents 8ede91b + c8d6430 commit 65cdd0f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy ./dist --project-name=rustmap
command: pages deploy ./dist --project-name roadmap
# secrets: |
# YOUR_SECRET
# YOUR_OTHER_SECRET
3 changes: 2 additions & 1 deletion .github/workflows/gen_preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: pages deploy ./dist --project-name roadmap --branch "${{ env.BRANCH_NAME }}"

- name: Extract hash from CF url Deploy
run: |
Expand Down

0 comments on commit 65cdd0f

Please sign in to comment.