File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 55 tags :
66 - " v*"
77
8+ permissions :
9+ contents : write
10+ packages : write
11+
812jobs :
913 validate-and-release :
1014 runs-on : windows-latest
8084
8185 - name : Cargo Publish
8286 run : cargo publish
87+ env :
88+ CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
Original file line number Diff line number Diff line change 77 branches :
88 - main
99
10+ permissions :
11+ contents : write # Ajout de cette ligne pour autoriser la création de tags
12+
1013jobs :
1114 create-tag :
1215 if : ${{ github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release/') }}
1720 steps :
1821 - name : Checkout Repository
1922 uses : actions/checkout@v4
23+ with :
24+ fetch-depth : 0
2025
2126 - name : Extract Version from Branch Name
2227 id : extract_version
3439 git config user.email "actions@github.com"
3540 git tag "v${{ env.version }}" -a -m "Release version ${{ env.version }}"
3641 git push origin "v${{ env.version }}"
42+ env :
43+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3744
3845 - name : Verify Tag
3946 run : |
You can’t perform that action at this time.
0 commit comments