feat: Added option to skip stripping elf #7
Workflow file for this run
This file contains 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
name: Release | |
on: | |
pull_request: | |
types: | |
- closed | |
branches: | |
- main | |
jobs: | |
create-release: | |
runs-on: ubuntu-latest | |
if: github.event_name == 'pull_request' && github.event.action == 'closed' && contains(github.event.pull_request.labels.*.name, 'release') | |
steps: | |
- name: Generate GitHub token | |
uses: actions/create-github-app-token@v1 | |
id: generate-token | |
with: | |
app-id: ${{ secrets.APP_ID }} | |
private-key: ${{ secrets.APP_PRIVATE_KEY }} | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Extract version from PR title | |
id: tag | |
run: echo "${{ github.event.pull_request.title }}" | awk '{print "name=" $2}' >> "$GITHUB_OUTPUT" | |
- name: Push a new tag | |
id: tag_version | |
uses: mathieudutour/[email protected] | |
with: | |
github_token: ${{ steps.generate-token.outputs.token }} | |
custom_tag: ${{ steps.tag.outputs.name }} | |
tag_prefix: "" | |
- name: Create a GitHub release | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: ${{ steps.tag.outputs.name }} | |
name: ${{ github.event.pull_request.title }} | |
body: ${{ github.event.pull_request.body }} | |
token: ${{ steps.generate-token.outputs.token }} |