Release #17
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
| name: Release | |
| on: | |
| release: | |
| types: [published] | |
| jobs: | |
| release: | |
| runs-on: ubuntu-22.04-arm | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Git | |
| run: | | |
| git config user.name "RPI WiFi Controller Auto-Build" | |
| git config user.email "action@github.com" | |
| # - name: Create new branch from tag | |
| # run: | | |
| # TAG_NAME=${{ github.event.release.tag_name }} | |
| # git checkout -b $TAG_NAME | |
| - name: Dump tag into VERSION file | |
| run: echo "${{ github.event.release.tag_name }}" > VERSION | |
| # - name: Update Changelog | |
| # run: | | |
| # echo "## ${{ github.event.release.tag_name }}" >> CHANGELOG.md | |
| # echo "${{ github.event.release.body }}" >> CHANGELOG.md | |
| # - name: Commit and push to release branch | |
| # run: | | |
| # git add VERSION | |
| # git commit -m "Add VERSION file for release $TAG_NAME" | |
| # git push origin $TAG_NAME | |
| - name: Debug - Check available branches | |
| run: | | |
| echo "=== Local branches ===" | |
| git branch -a | |
| echo "=== Remote branches ===" | |
| git ls-remote --heads origin | |
| echo "=== Default branch ===" | |
| git remote show origin | grep 'HEAD branch' | |
| - name: Commit and push to release branch | |
| run: | | |
| git add VERSION | |
| git commit -m "Add VERSION file for release" | |
| git push origin master | |
| - name: Checkout main branch | |
| run: git checkout main | |
| #- name: Merge release branch into main | |
| # run: | | |
| # git merge $TAG_NAME | |
| # git push origin main |