From 2f4bc106a3655fce2502c55e54b0302d801581d9 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Wed, 17 Jan 2024 16:04:55 -0500 Subject: [PATCH 1/9] Publish to IDS --- .github/workflows/publish.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..3625a87 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,24 @@ +name: CI + +on: + workflow_dispatch: + push: + branches: [main] + +jobs: + publish: + name: Publish + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + - run: | + mkdir artifacts + git archive --format=tar.gz HEAD -o ./artifacts/universal.tar.gz + + - uses: DeterminateSystems/push-artifact-ids@main + with: + s3_upload_role: ${{ secrets.AWS_S3_UPLOAD_ROLE }} + bucket: ${{ secrets.AWS_S3_UPLOAD_BUCKET }} + directory: ./artifacts + ids_project_name: magic-nix-cache-action-priv + ids_binary_prefix: action.tar.gz From f82b66b01eb798db38e88ed87c2682173094df75 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Wed, 17 Jan 2024 16:06:14 -0500 Subject: [PATCH 2/9] Update publish.yml --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3625a87..521570a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,4 +1,4 @@ -name: CI +name: Publish on: workflow_dispatch: From 3d7e6ac01e89da4df2f04a7f52f98354df863f43 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Wed, 17 Jan 2024 16:07:46 -0500 Subject: [PATCH 3/9] Update publish.yml --- .github/workflows/publish.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 521570a..bdc2755 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,7 +3,9 @@ name: Publish on: workflow_dispatch: push: - branches: [main] + branches: + - main + - grahamc-patch-1 jobs: publish: From acd8abaa79f8718d6a1763efaf56c8ee91436087 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Wed, 17 Jan 2024 16:08:04 -0500 Subject: [PATCH 4/9] Update publish.yml --- .github/workflows/publish.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index bdc2755..8ad5bc7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,7 +5,6 @@ on: push: branches: - main - - grahamc-patch-1 jobs: publish: From fb25bcbd4a26ff66f860a0d9ae14ba5b090a0ea2 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Wed, 17 Jan 2024 16:12:42 -0500 Subject: [PATCH 5/9] Update publish.yml --- .github/workflows/publish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8ad5bc7..02cbdc2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -23,3 +23,4 @@ jobs: directory: ./artifacts ids_project_name: magic-nix-cache-action-priv ids_binary_prefix: action.tar.gz + allowed_branches: '["main", "grahamc-patch-1"]' From f8cb8eb6e1c3ca97d96fc4ce0bf86accf5afe619 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Wed, 17 Jan 2024 16:13:17 -0500 Subject: [PATCH 6/9] Update publish.yml --- .github/workflows/publish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 02cbdc2..f59e889 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,6 +5,7 @@ on: push: branches: - main + - grahamc-patch-1 jobs: publish: From f7a26ff456b818bb90b24ce9e35a143edd127bec Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Wed, 17 Jan 2024 16:14:16 -0500 Subject: [PATCH 7/9] Update publish.yml --- .github/workflows/publish.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f59e889..2a39efb 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -11,6 +11,9 @@ jobs: publish: name: Publish runs-on: ubuntu-22.04 + permissions: + contents: read + id-token: write steps: - uses: actions/checkout@v3 - run: | From 206406b3b5ef07a8b0f1007fe66e128efad321cf Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Wed, 17 Jan 2024 16:43:06 -0500 Subject: [PATCH 8/9] Update publish.yml --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2a39efb..a5682ac 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -26,5 +26,5 @@ jobs: bucket: ${{ secrets.AWS_S3_UPLOAD_BUCKET }} directory: ./artifacts ids_project_name: magic-nix-cache-action-priv - ids_binary_prefix: action.tar.gz + ids_binary_prefix: magic-nix-cache-action-priv allowed_branches: '["main", "grahamc-patch-1"]' From a3048b7929d3e57b019a204af6c8907a1c3b2330 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Wed, 17 Jan 2024 17:25:34 -0500 Subject: [PATCH 9/9] Update publish.yml --- .github/workflows/publish.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a5682ac..ce62f64 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,7 +5,6 @@ on: push: branches: - main - - grahamc-patch-1 jobs: publish: @@ -27,4 +26,3 @@ jobs: directory: ./artifacts ids_project_name: magic-nix-cache-action-priv ids_binary_prefix: magic-nix-cache-action-priv - allowed_branches: '["main", "grahamc-patch-1"]'