Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows #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: Build, Test, Release | |
on: | |
push: | |
branches: | |
- '*' | |
tags: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install build tools | |
run: sudo apt update && sudo apt install -y nasm qemu-utils gocr mkisofs dosfstools | |
- name: Build | |
run: ./build.sh | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: images | |
if-no-files-found: error | |
path: | | |
*.iso | |
*.qcow2 | |
*.raw | |
*.vdi | |
*.vhd | |
*.vmdk | |
test: | |
needs: build | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install testing tools | |
run: sudo apt update && sudo apt install -y gocr qemu-utils qemu qemu-kvm gocr imagemagick | |
- name: Download artifacts | |
uses: actions/[email protected] | |
with: | |
name: images | |
- name: Run test | |
run: ./test.sh | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v2 | |
if: always() | |
with: | |
name: screendumps | |
path: '*.png' | |
release: | |
needs: test | |
name: Release | |
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Download artifacts | |
uses: actions/[email protected] | |
with: | |
name: images | |
- name: Create release | |
run: gh release create -d ${{ github.ref }} *.iso *.qcow2 *.raw *.vdi *.vhd *.vmdk | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |