Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows #28
This file contains hidden or 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: test_github_actions | |
on: [push] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
include: | |
- os: windows-latest | |
extension: bat | |
name: windows | |
- os: ubuntu-latest | |
extension: sh | |
name: linux | |
- os: macos-latest | |
extension: osx | |
name: macOS | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: setup python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: build | |
run: ./build_mtree.${{ matrix.extension }} | |
- name: package addon | |
run: python .github/scripts/setup_addon.py | |
- name: upload zipped addon | |
uses: actions/upload-artifact@v2 | |
with: | |
name: modular_tree_${{ matrix.name }} | |
path: tmp/*.zip | |
release: | |
needs: build | |
runs-on: ubuntu-latest | |
env: | |
STATUS: ${{ !endsWith(github.ref, 'master') && 'alpha' || '' }} | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: Download build artifacts | |
uses: actions/download-artifact@v4.1.7 | |
- name: Display structure of downloaded files | |
run: ls -R | |
- name: Get version | |
id: vars | |
run: echo ::set-output name=version::$(cat VERSION) | |
- name: Update release | |
uses: johnwbyrd/update-release@v1.0.0 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
files: ./modular_tree_windows/modular_tree_${{ steps.vars.outputs.version }}_windows.zip ./modular_tree_linux/modular_tree_${{ steps.vars.outputs.version }}_linux.zip ./modular_tree_macOS/modular_tree_${{ steps.vars.outputs.version }}_macOS.zip | |
release: Release V${{ steps.vars.outputs.version }}${{ env.STATUS }} | |
tag: ${{ steps.vars.outputs.version }}${{ env.STATUS }} | |
message: V${{ steps.vars.outputs.version }} | |
body: '' | |