mirror of
https://github.com/DeterminateSystems/magic-nix-cache-action.git
synced 2024-12-27 01:30:35 +01:00
bring back publish for testing
This commit is contained in:
parent
94e40c4223
commit
31c49f0ecd
1 changed files with 28 additions and 0 deletions
28
.github/workflows/publish.yml
vendored
Normal file
28
.github/workflows/publish.yml
vendored
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
name: Publish
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish:
|
||||||
|
name: Publish
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
id-token: write
|
||||||
|
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: magic-nix-cache-action-priv
|
Loading…
Reference in a new issue