From 2f4bc106a3655fce2502c55e54b0302d801581d9 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Wed, 17 Jan 2024 16:04:55 -0500 Subject: [PATCH] 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