upload full package to s3 (#44)

* add full-package upload workflow

* update release version

---------

Co-authored-by: liuyu <>
This commit is contained in:
eball
2024-05-17 20:21:52 +08:00
committed by GitHub
parent cefc29b16f
commit 9d7311fb6f
3 changed files with 34 additions and 4 deletions

31
.github/workflows/upload-full.yaml vendored Normal file
View File

@@ -0,0 +1,31 @@
name: Upload Full Package
on:
workflow_dispatch:
inputs:
tags:
description: 'Release Tags'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: 'Checkout source code'
uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.tags }}
- name: Package installer
run: |
bash scripts/build-full.sh ${{ github.event.inputs.tags }}
- name: Upload to S3
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: |
aws s3 cp install-wizard-v${{ github.event.inputs.tags }}.tar.gz s3://terminus-os-install/install-wizard-v${{ github.event.inputs.tags }}.tar.gz '--acl=public-read'