File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed
Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change 1- name : Nightly
1+ name : Canary
22
33on :
4- schedule :
5- - cron : " 0 0 * * *"
4+ push :
5+ branches :
6+ - rust
67 workflow_dispatch :
78
89jobs :
@@ -25,10 +26,17 @@ jobs:
2526 with :
2627 prefix-key : " wasm"
2728
28- - name : Install Trunk
29+ - name : Set version
2930 run : |
30- wget -qO- https://github.com/trunk-rs/trunk/releases/latest/download/trunk-x86_64-unknown-linux-gnu.tar.gz | tar -xzf-
31- sudo mv trunk /usr/local/bin/
31+ SHA=$(git rev-parse --short HEAD)
32+ VERSION="0.0.0-canary.$SHA"
33+ echo "ver: $VERSION"
34+ sed -i "s/^version = \"0.0.0-dev\"/version = \"$VERSION\"/" Cargo.toml
35+
36+ - name : Install Trunk
37+ uses : jetli/trunk-action@v0.5.1
38+ with :
39+ version : " latest"
3240
3341 - name : Build with Trunk
3442 run : |
4755 with :
4856 apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
4957 accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
58+ githubToken : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments