Skip to content

Commit

Permalink
fix actions (#696)
Browse files Browse the repository at this point in the history
Release Docker dispatch:
https://github.com/lapp0/outlines/actions/runs/7994419887
- "Fails successfully": Got to the point where it only auth errors.
`Error: buildx failed with: ERROR: denied: requested access to the
resource is denied`

Not testing fetch PyPi. Changes are minimal between this version and the
previous *working* main.

```
git diff e99d92d -- .github/workflows/release_pypi.yaml .github/workflows/release.yml | cat
diff --git a/.github/workflows/release.yml b/.github/workflows/release_pypi.yaml
similarity index 92%
rename from .github/workflows/release.yml
rename to .github/workflows/release_pypi.yaml
index e6bf1b1..597ebb7 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release_pypi.yaml
@@ -1,16 +1,17 @@
-name: Release
+name: Release PyPi
 
 on:
   release:
     types:
       - created
-
 jobs:
   release-job:
     name: Build and publish on PyPi
     runs-on: ubuntu-latest
+    environment: release
     steps:
-    - uses: actions/checkout@v2
+    - name: Checkout
+      uses: actions/checkout@v2
     - name: Set up Python
       uses: actions/setup-python@v2
       with:
```

---------

Co-authored-by: Andrew Lapp <[email protected]>
  • Loading branch information
lapp0 and Andrew Lapp authored Feb 21, 2024
1 parent 26d9f0c commit 10871cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/release_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
runs-on: ubuntu-latest
environment: release
steps:

- name: Checkout
uses: actions/checkout@v4
- name: Log in to Docker Hub
Expand All @@ -30,7 +29,7 @@ jobs:
push: true
tags: |
outlinesdev/outlines:latest
outlinesdev/outlines:${{ github.event.release.tag_name }}
outlinesdev/outlines:${{ github.event.release.tag_name || github.event.inputs.release_tag }}
build-args: |
BUILDKIT_CONTEXT_KEEP_GIT_DIR=true
- name: Clean docker cache
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release_pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ jobs:
name: Build and publish on PyPi
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
Expand Down

0 comments on commit 10871cf

Please sign in to comment.