Skip to content

Commit

Permalink
fix: upload/build flow (#37)
Browse files Browse the repository at this point in the history
* fix: upload/build flow

* Update build.yml

* fix: push to all branches

---------

Co-authored-by: Samuel Attard <[email protected]>
  • Loading branch information
codebytere and MarshallOfSound authored Aug 16, 2024
1 parent 9b00e55 commit ae14dcb
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
name: "Build and Upload Sysroots"

on:
pull_request:
types:
- opened
- synchronize
push:
branches:
- bullseye

permissions:
contents: write
Expand All @@ -23,7 +17,6 @@ jobs:
matrix:
arch: [amd64, i386, armhf, arm64, mipsel, mips64el]
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- name: Checkout Repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # 4.1.7
Expand All @@ -43,6 +36,9 @@ jobs:
upload:
name: Upload Sysroots to Azure
runs-on: ubuntu-latest
needs: build
environment: production
if: github.ref == 'refs/heads/bullseye'
env:
AZURE_STORAGE_SAS_TOKEN: ${{ secrets.AZURE_STORAGE_SAS_TOKEN }}
steps:
Expand All @@ -61,7 +57,6 @@ jobs:
curl --output build/linux/sysroot_scripts/sysroots.json $json_url
az extension add --name storage-preview
- name: Upload Sysroots to Azure
if: github.event_name == 'push'
run: ./build/linux/sysroot_scripts/build_and_upload.py --upload
- name: Upload Sysroot JSON Artifact
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # 4.2.6
Expand Down

0 comments on commit ae14dcb

Please sign in to comment.