fix release workflow #6
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
# When a new Tag with the prefix v is pushed to the repository, this workflow will create a new release branch called release/<tag name>. | |
name: Create a Release Branch | |
on: | |
push: | |
tags: | |
- 'v*' | |
permissions: | |
contents: write # Needed to push new branch | |
jobs: | |
create-branch: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: extractions/setup-just@v3 | |
with: | |
just-version: "1.40" | |
- name: Create Release Branch | |
run: | | |
git checkout -b release/${GITHUB_REF_NAME} | |
just make-vendor-tar | |
sed -i '/vendor.tar/d' ./src/hyperlight_wasm/.gitignore | |
git add ./src/hyperlight_wasm/vendor.tar | |
git add ./src/hyperlight_wasm/.gitignore | |
git config user.name hyperlight-wasm-ci | |
git config user.email [email protected] | |
git commit -s -S \ | |
-m "Vendor dependencies for release ${GITHUB_REF_NAME}" | |
git push --set-upstream origin release/${GITHUB_REF_NAME} | |
shell: bash |