Skip to content

Commit

Permalink
WIP: testing new publish ci x7
Browse files Browse the repository at this point in the history
  • Loading branch information
9and3 committed Aug 23, 2024
1 parent 0ca89d0 commit f1e6d9f
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,16 @@ jobs:
with:
python-version: '3.x'

- name: Install dependencies
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install invoke
- name: Install GitHub CLI
run: |
choco install gh
- name: Authenticate GitHub CLI
run: |
echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token
- name: Sync version
run: invoke syncv
Expand All @@ -43,21 +49,17 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create pull request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: version-sync-branch
title: "Sync version for release"
body: "This pull request was created automatically by GitHub Actions."
base: main
- name: Create pull request without custom actions
run: |
gh pr create --title "ACTION_BOT: Sync version for release" --body "Sync version for release" --base main --head version-sync-branch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Merge pull request
uses: peter-evans/merge-pull-request@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
pull-request-number: ${{ steps.create_pull_request.outputs.pull-request-number }}
merge-method: squash
run: |
gh pr merge --squash --auto --merge --delete-branch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

######################## build/publish yak ##########################
build_yak:
Expand Down

0 comments on commit f1e6d9f

Please sign in to comment.