magic-nix-cache-action/.github/workflows/publish.yml

29 lines
697 B
YAML
Raw Normal View History

2024-01-17 22:06:14 +01:00
name: Publish
2024-01-17 22:04:55 +01:00
on:
workflow_dispatch:
push:
2024-01-17 22:07:46 +01:00
branches:
- main
2024-01-17 22:04:55 +01:00
jobs:
publish:
name: Publish
runs-on: ubuntu-22.04
2024-01-17 22:14:16 +01:00
permissions:
contents: read
id-token: write
2024-01-17 22:04:55 +01:00
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
2024-01-17 22:43:06 +01:00
ids_binary_prefix: magic-nix-cache-action-priv