Skip to content
This repository has been archived by the owner on Feb 8, 2025. It is now read-only.

Commit

Permalink
Commit the contents as of the tag to the release branch at release time
Browse files Browse the repository at this point in the history
  • Loading branch information
AmaseCocoa committed Jul 8, 2024
1 parent aba5cf9 commit 6ab72f3
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,31 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Git
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
- name: Create or switch to release branch
run: |
git checkout -B release
- name: Copy files from tag
run: |
TAG_NAME=$(git describe --tags --abbrev=0)
git checkout $TAG_NAME -- .
- name: Commit changes
run: |
git add -A
git commit -m "Update release branch to $TAG_NAME"
- name: Push to release branch
run: |
git push origin release --force
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Python
uses: actions/setup-python@v5
with:
Expand Down

0 comments on commit 6ab72f3

Please sign in to comment.