Skip to content

Commit 1e2ffd4

Browse files
jschweemilio
authored andcommitted
CI: Replace forbidden actions with cli code
the semver checks action and the release action are not in the allow-list so replace them with their respective cli counterparts. These changes can only be tested by someone with permissions, so the release part only releases a draft release for now.
1 parent f61946b commit 1e2ffd4

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
# someone with permissions to create a tag.
1515
contents: write
1616

17-
runs-on: ubuntu-latest
17+
runs-on: ubuntu-20.04
1818

1919
steps:
2020
- uses: actions/checkout@v3
@@ -23,9 +23,9 @@ jobs:
2323
uses: dtolnay/rust-toolchain@stable
2424

2525
- name: semver
26-
uses: obi1kenobi/cargo-semver-checks-action@v2
27-
with:
28-
rust-toolchain: stable
26+
run: |
27+
cargo install cargo-semver-checks --locked
28+
cargo semver-checks check-release
2929
3030
- name: Build cbindgen
3131
run: |
@@ -49,11 +49,8 @@ jobs:
4949
sed '$ d' | awk '{$1=$1};1' > CHANGES.txt
5050
5151
- name: Create a release
52-
uses: softprops/action-gh-release@v1
53-
with:
54-
name: v${{ steps.tagName.outputs.version }}
55-
body_path: CHANGES.txt
56-
files: |
57-
target/release/cbindgen
52+
run: |
53+
TAG=${{ steps.tagName.outputs.version }}
54+
gh release create ${TAG} --title "${TAG}" --notes-file "CHANGES.txt" --draft 'target/release/cbindgen#cbindgen-ubuntu20.04'
5855
env:
5956
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)