File tree 4 files changed +6
-14
lines changed
4 files changed +6
-14
lines changed Original file line number Diff line number Diff line change 26
26
OUTPUT : CHANGELOG.md
27
27
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28
28
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
Original file line number Diff line number Diff line change 29
29
run : bun install
30
30
31
31
- name : Build
32
- run : bunx nuxi build --preset=cloudflare
32
+ run : bunx nuxi build --preset=cloudflare_pages
33
33
34
34
- name : Deploy
35
35
uses : cloudflare/wrangler-action@v3
39
39
with :
40
40
apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
41
41
accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
42
- command : pages deploy ./dist --project-name=rustmap
42
+ command : pages deploy ./dist --project-name roadmap
43
43
# secrets: |
44
44
# YOUR_SECRET
45
45
# YOUR_OTHER_SECRET
Original file line number Diff line number Diff line change 25
25
persist-credentials : false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
26
26
fetch-depth : 0 # otherwise, there would be errors pushing refs to the destination repository.
27
27
# 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
29
30
30
31
- name : Get changed files
31
32
run : |
Original file line number Diff line number Diff line change 62
62
- name : Install Deps
63
63
run : bun install
64
64
- name : Build
65
- run : bun run build --preset=cloudflare
65
+ run : bun run build --preset=cloudflare_pages
66
66
67
67
# Deploy steps
68
68
- name : Deploy
71
71
with :
72
72
apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
73
73
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 }}"
75
75
76
76
- name : Extract hash from CF url Deploy
77
77
run : |
You can’t perform that action at this time.
0 commit comments