File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Release
2+ on :
3+ push :
4+ tags :
5+ - " v[0-9]+\. [0-9]+\. [0-9]"
6+ workflow_dispatch :
7+
8+ jobs :
9+ validate_pr_metadata :
10+ runs-on : ubuntu-latest
11+ container :
12+ image : rust:1.88.0-alpine
13+ steps :
14+ - uses : actions/checkout@v4
15+ - name : Install gcc
16+ run : apk add gcc g++
17+ - name : Build validator
18+ run : cargo build --release --bin pr-metadata-validator
19+ - name : Create release
20+ id : create_release
21+ uses : softprops/action-gh-release@v1
22+ env :
23+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
24+ with :
25+ generate_release_notes : true
26+ tag_name : ${{ github.ref_name }}
27+ target_commitish : ${{ github.ref_name }}
28+ - name : Upload validator to release
29+ uses : actions/upload-release-asset@v1
30+ env :
31+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
32+ with :
33+ upload_url : ${{ steps.create_release.outputs.upload_url }}
34+ asset_name : pr-metadata-validator-musl-${{ github.ref_name }}
35+ asset_path : target/release/pr-metadata-validator
36+ asset_content_type : application/octet-stream
You can’t perform that action at this time.
0 commit comments