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: Build artefact for release | |
on: | |
release: | |
types: [ published ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install SSH Key | |
uses: shimataro/ssh-key-action@v2 | |
with: | |
key: ${{ secrets.SSH_PRIVATE_KEY }} | |
known_hosts: 'know-host-placeholder' | |
- name: Adding Known Hosts | |
run: ssh-keyscan -H github.com >> ~/.ssh/known_hosts | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update -y | |
sudo apt-get install git zip unzip curl jq -y | |
- name: Set run permissions | |
run: sudo chmod +x ./build.sh | |
- name: Run build script | |
run: | | |
export TERM=xterm | |
./build.sh | |
ls -l | |
- name: Upload artifact | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: ./pkg_quantummanager.zip |