Install Wizard Release #86
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Install Wizard Release | |
on: | |
workflow_dispatch: | |
inputs: | |
tags: | |
description: 'Release Tags' | |
jobs: | |
push: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout source code' | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.inputs.tags }} | |
- env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_DEFAULT_REGION: 'us-east-1' | |
run: | | |
bash scripts/image-manifest.sh && bash scripts/upload-images.sh .manifest/images.mf | |
push-arm64: | |
runs-on: [self-hosted, linux, ARM64] | |
steps: | |
- name: 'Checkout source code' | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.inputs.tags }} | |
- env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_DEFAULT_REGION: 'us-east-1' | |
run: | | |
export PATH=$PATH:/usr/local/bin:/home/ubuntu/.local/bin | |
bash scripts/image-manifest.sh && bash scripts/upload-images.sh .manifest/images.mf linux/arm64 | |
upload-package: | |
needs: [push, push-arm64] | |
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.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 }} | |
AWS_DEFAULT_REGION: 'us-east-1' | |
run: | | |
md5sum install-wizard-v${{ github.event.inputs.tags }}.tar.gz > install-wizard-v${{ github.event.inputs.tags }}.md5sum.txt && \ | |
aws s3 cp install-wizard-v${{ github.event.inputs.tags }}.md5sum.txt s3://terminus-os-install/install-wizard-v${{ github.event.inputs.tags }}.md5sum.txt --acl=public-read && \ | |
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 | |
release: | |
runs-on: ubuntu-latest | |
needs: [upload-package] | |
steps: | |
- name: 'Checkout source code' | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.inputs.tags }} | |
- name: Update env | |
working-directory: ./build/installer | |
run: | | |
echo 'DEBUG_VERSION="false"' > .env | |
- name: Get checksum | |
id: vars | |
run: | | |
echo "version_md5sum=$(curl -sSfL https://dc3p1870nn3cj.cloudfront.net/install-wizard-v${{ github.event.inputs.tags }}.md5sum.txt|awk '{print $1}')" >> $GITHUB_OUTPUT | |
- name: Update checksum | |
uses: eball/write-tag-to-version-file@latest | |
with: | |
filename: 'build/installer/install.sh' | |
placeholder: '#__MD5SUM__' | |
tag: ${{ steps.vars.outputs.version_md5sum }} | |
- name: Package installer | |
run: | | |
bash scripts/build.sh ${{ github.event.inputs.tags }} | |
- name: 'Archives' | |
run: | | |
cp .dist/install-wizard/install.sh build/installer | |
cp build/installer/install.sh build/installer/publicInstaller.sh | |
cp build/installer/install.sh build/installer/publicInstaller.latest | |
cp .dist/install-wizard/install.ps1 build/installer | |
cp build/installer/install.ps1 build/installer/publicInstaller.latest.ps1 | |
- name: Release public files | |
uses: softprops/action-gh-release@v1 | |
with: | |
name: v${{ github.event.inputs.tags }} Release | |
tag_name: ${{ github.event.inputs.tags }} | |
files: | | |
install-wizard-v${{ github.event.inputs.tags }}.tar.gz | |
build/installer/publicInstaller.sh | |
build/installer/publicInstaller.latest | |
build/installer/install.sh | |
build/installer/publicInstaller.latest.ps1 | |
build/installer/install.ps1 | |
build/installer/publicAddnode.sh | |
build/installer/version.hint | |
build/installer/publicRestoreInstaller.sh | |
prerelease: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |