mirror of
https://github.com/DeterminateSystems/magic-nix-cache-action.git
synced 2024-12-24 14:02:03 +01:00
25 lines
612 B
YAML
25 lines
612 B
YAML
|
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
|