Skip to content

Commit 25aa92a

Browse files
committed
Merge pull request #17 from RustLangES/fix_gen_image
[CI] Install preview bin from Releases
2 parents 8ede91b + c8d6430 commit 25aa92a

File tree

4 files changed

+6
-14
lines changed

4 files changed

+6
-14
lines changed

.github/workflows/changelog.yml

-9
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,3 @@ jobs:
2626
OUTPUT: CHANGELOG.md
2727
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2828
GITHUB_REPO: ${{ github.repository }}
29-
30-
- name: Commit
31-
run: |
32-
git config user.name 'github-actions[bot]'
33-
git config user.email 'github-actions[bot]@users.noreply.github.com'
34-
set +e
35-
git add CHANGELOG.md
36-
git commit -m "Update changelog"
37-
git push origin main

.github/workflows/deploy.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
run: bun install
3030

3131
- name: Build
32-
run: bunx nuxi build --preset=cloudflare
32+
run: bunx nuxi build --preset=cloudflare_pages
3333

3434
- name: Deploy
3535
uses: cloudflare/wrangler-action@v3
@@ -39,7 +39,7 @@ jobs:
3939
with:
4040
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
4141
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
42-
command: pages deploy ./dist --project-name=rustmap
42+
command: pages deploy ./dist --project-name roadmap
4343
# secrets: |
4444
# YOUR_SECRET
4545
# YOUR_OTHER_SECRET

.github/workflows/gen_preview.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ jobs:
2525
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
2626
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
2727
# Download bin of gen_preview
28-
# TODO
28+
- name: Install preview bin
29+
run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/RustLangES/rustmap/releases/download/v0.2.0/preview-installer.sh | sh
2930

3031
- name: Get changed files
3132
run: |

.github/workflows/pr-preview.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
- name: Install Deps
6363
run: bun install
6464
- name: Build
65-
run: bun run build --preset=cloudflare
65+
run: bun run build --preset=cloudflare_pages
6666

6767
# Deploy steps
6868
- name: Deploy
@@ -71,7 +71,7 @@ jobs:
7171
with:
7272
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
7373
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
74-
command: pages deploy ./dist --project-name=rustmap --branch "${{ env.BRANCH_NAME }}"
74+
command: pages deploy ./dist --project-name roadmap --branch "${{ env.BRANCH_NAME }}"
7575

7676
- name: Extract hash from CF url Deploy
7777
run: |

0 commit comments

Comments
 (0)