Skip to content

Commit

Permalink
Fix the repository names and other deployment gates
Browse files Browse the repository at this point in the history
  • Loading branch information
arcivanov committed Sep 8, 2024
1 parent 21fc972 commit 0b1a53e
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions build.yml.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 7364c19..3cda5c4 100644
index 7364c19..a86021a 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -9,19 +9,7 @@ on:
Expand Down Expand Up @@ -47,7 +47,7 @@ index 7364c19..3cda5c4 100644

- name: Set up emulation
if: matrix.platform != 'i686' && matrix.platform != 'x86_64'
@@ -70,13 +68,16 @@ jobs:
@@ -70,29 +68,34 @@ jobs:
key: buildx-cache-${{ matrix.policy }}-${{ matrix.platform }}

- name: Build
Expand All @@ -57,19 +57,27 @@ index 7364c19..3cda5c4 100644
+ ./build.sh

- name: Delete cache
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
- if: github.event_name == 'push' && github.ref == 'refs/heads/main'
+ if: github.event_name == 'push' && github.ref == 'refs/heads/master'
run: |
KEY="buildx-cache-${{ matrix.policy }}-${{ matrix.platform }}"
gh cache delete ${KEY} || true
+
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

@@ -89,10 +90,12 @@ jobs:
- name: Save cache
- if: github.event_name == 'push' && github.ref == 'refs/heads/main'
+ if: github.event_name == 'push' && github.ref == 'refs/heads/master'
uses: actions/cache/save@v4
with:
path: .buildx-cache-${{ matrix.policy }}_${{ matrix.platform }}/*
key: buildx-cache-${{ matrix.policy }}-${{ matrix.platform }}

- name: Deploy
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository == 'pypa/manylinux'
- if: github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository == 'pypa/manylinux'
- run: ./deploy.sh
+ if: github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'karellen/karellen-manylinux'
+ run: |
+ cd manylinux
+ ./deploy.sh
Expand Down

0 comments on commit 0b1a53e

Please sign in to comment.