diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 9b00423..0f5c89c 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -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: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5702a1a..693fd67 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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