also update version #10
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: "Release" | |
on: | |
push: | |
tags: | |
- 'v*.*.*' | |
env: | |
app-name: grafito | |
defaults: | |
run: | |
shell: bash -l {0} | |
jobs: | |
package: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
version: | |
- full | |
steps: | |
- name: "Cancel similar actions in progress" | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- name: "Get Arturo" | |
uses: actions/checkout@main | |
with: | |
repository: arturo-lang/arturo | |
submodules: recursive | |
- name: Install Nim | |
run: | | |
wget -qO - https://nim-lang.org/choosenim/init.sh | bash -s -- -y | |
echo "$HOME/.nimble/bin" >> $GITHUB_PATH | |
- name: Install dependencies | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
sudo apt-get update | |
sudo apt-get install libwebkit2gtk-4.0-dev | |
- name: Verify dependecies | |
run: | | |
nim --version | |
- name: "Checkout" | |
uses: actions/checkout@main | |
with: | |
submodules: recursive | |
path: "grafito" | |
- name: Package binary | |
run: | | |
mv grafito/grafito.art grafito.art | |
rm -rf grafito | |
./package grafito.art | |
ls -la | |
- name: Create artifact | |
run: | | |
install -m 0755 ./grafito . | |
tar czf ${{ env.app-name }}-${{runner.os}}.tar.gz ${{ env.app-name }} README.md LICENSE | |
- name: Upload Artifact | |
uses: 'actions/upload-artifact@v1' | |
with: | |
name: ${{ env.app-name }}-${{runner.os}}.tar.gz | |
path: ${{ env.app-name }}-${{runner.os}}.tar.gz | |
upload: | |
name: "Upload" | |
runs-on: ubuntu-latest | |
if: ${{ always() }} | |
needs: | |
- package | |
steps: | |
- uses: actions/download-artifact@v2 | |
with: | |
path: ./assets | |
- name: Display structure of downloaded files | |
run: ls -R | |
- name: Create Release | |
id: create-release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: ${{ github.ref }} | |
body: | | |
Official Release | |
${{ github.ref }} | |
draft: false | |
prerelease: false | |
- name: Upload Release Assets | |
id: upload-release-assets | |
uses: dwenegar/upload-release-assets@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
release_id: ${{ steps.create-release.outputs.id }} | |
assets_path: ./assets |