ci: update to checkout current branch
This commit is contained in:
parent
c718b6544e
commit
829eccc4c6
14
.github/workflows/cd.yml
vendored
14
.github/workflows/cd.yml
vendored
|
@ -1,6 +1,7 @@
|
|||
name: continous deployment
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
|
@ -15,7 +16,7 @@ jobs:
|
|||
- name: checkout
|
||||
uses: actions/checkout@v4.1.2
|
||||
with:
|
||||
ref: main
|
||||
ref: ${{ github.ref }}
|
||||
|
||||
- name: get branch name
|
||||
id: get-branch-name
|
||||
|
@ -48,13 +49,20 @@ jobs:
|
|||
name: wheels
|
||||
path: dist/
|
||||
|
||||
release:
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
needs: [build]
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- name: release
|
||||
uses: softprops/action-gh-release@v2.0.4
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
with:
|
||||
files: |
|
||||
dist/*.whl
|
||||
|
||||
|
||||
provenance:
|
||||
needs: [build]
|
||||
permissions:
|
||||
|
|
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
|
@ -14,10 +14,12 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4.1.2
|
||||
with:
|
||||
ref: ${{ github.ref }}
|
||||
|
||||
- name: install devbox
|
||||
uses: jetpack-io/devbox-install-action@v0.7.0
|
||||
- name: install devbox
|
||||
uses: jetpack-io/devbox-install-action@v0.8.0
|
||||
|
||||
- name: build wheel
|
||||
id: build
|
||||
|
|
Loading…
Reference in a new issue