Skip to content

Commit 10532e2

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

File tree

5 files changed

+6
-13
lines changed

5 files changed

+6
-13
lines changed

.github/workflows/changelog.yml

Lines changed: 0 additions & 9 deletions
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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: deploy --name rustmap
4343
# secrets: |
4444
# YOUR_SECRET
4545
# YOUR_OTHER_SECRET

.github/workflows/gen_preview.yml

Lines changed: 2 additions & 1 deletion
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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ 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: deploy --name rustmap
75+
# --branch "${{ env.BRANCH_NAME }}"
7576

7677
- name: Extract hash from CF url Deploy
7778
run: |

wrangler.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name = "roadmap"
1+
name = "rustmap"
22
main = "./.output/server/index.mjs"
33
workers_dev = true
44
compatibility_date = "2024-03-14"

0 commit comments

Comments
 (0)