File tree Expand file tree Collapse file tree 5 files changed +69
-35
lines changed
Expand file tree Collapse file tree 5 files changed +69
-35
lines changed Original file line number Diff line number Diff line change 1+ name : sync branches to github
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ - master
8+ - develop
9+ - " release/*"
10+ workflow_dispatch :
11+
12+ jobs :
13+ sync-branches :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - uses : actions/checkout@v4
17+ - run : |
18+ set -e
19+ git remote add github https://${{ secrets.OSS_GITHUB_NAME }}:${{ secrets.OSS_GITHUB_TOKEN }}@github.com/wasm-ecosystem/wasm-compiler.git
20+
21+ # Push the current branch
22+ BRANCH_NAME=${GITHUB_REF#refs/heads/}
23+ git push github "$BRANCH_NAME" -f
Original file line number Diff line number Diff line change 1+ name : sync tags to github
2+
3+ on :
4+ push :
5+ tags :
6+ - " *"
7+ workflow_dispatch :
8+ inputs :
9+ tag_name :
10+ description : " Tag name to sync"
11+ required : false
12+ type : string
13+
14+ jobs :
15+ sync-tag :
16+ runs-on : ubuntu-latest
17+ steps :
18+ - uses : actions/checkout@v4
19+ with :
20+ fetch-depth : 0
21+ - run : |
22+ set -e
23+ git remote add github https://${{ secrets.OSS_GITHUB_NAME }}:${{ secrets.OSS_GITHUB_TOKEN }}@github.com/wasm-ecosystem/wasm-compiler.git
24+
25+ # Determine tag name: from manual input or from push event
26+ if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
27+ TAG_NAME="${{ github.event.inputs.tag_name }}"
28+ else
29+ # It's a tag push event
30+ TAG_NAME="${GITHUB_REF#refs/tags/}"
31+ fi
32+
33+ echo "Syncing tag: $TAG_NAME"
34+ git push github "$TAG_NAME"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 88
99env :
1010 package_name : wasm-compiler-${{ github.ref_name }}.tar.gz
11+
12+ permissions :
13+ contents : write
14+
1115jobs :
1216 release :
1317 runs-on : [ubuntu-latest]
Original file line number Diff line number Diff line change 55 branches :
66 - main
77 - master
8- - develop
98 - " release/*"
109 workflow_dispatch :
1110
1514 steps :
1615 - uses : actions/checkout@v4
1716 with :
18- fetch-depth : -1
19- - name : tag
17+ token : ${{ secrets.TECH_USER_ATC_GITHUB_TOKEN }}
18+ fetch-depth : 0
19+ - name : Configure git for release tagging
20+ run : |
21+ git config --global user.email "[email protected] " 22+ git config --global user.name "GitHub Release Bot"
23+
24+ - name : Create release tag
2025 run : |
2126 version_info=$(sed -n '/^##/{s/^##//;s/ //g;p;q;}' RELEASENOTES.md)
2227 new_tag_name=$version_info
You can’t perform that action at this time.
0 commit comments