Workflow: Deploy on tag

This commit is contained in:
Joshua Bell 2021-07-23 08:43:32 -07:00
parent 7587db2f48
commit ecf7459fb3

View File

@ -3,10 +3,9 @@ name: build
on: on:
push: push:
branches: [ main ] branches: [ main ]
tags: ['*']
pull_request: pull_request:
branches: [ main ] branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch: workflow_dispatch:
jobs: jobs:
@ -17,13 +16,26 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: build and install cc65 components - name: build and install cc65 components
run: | run: >
git clone https://github.com/cc65/cc65 /tmp/cc65 git clone https://github.com/cc65/cc65 /tmp/cc65 &&
sudo make -C /tmp/cc65 ca65 ld65 avail sudo make -C /tmp/cc65 ca65 ld65 avail &&
ca65 --version ca65 --version
- name: build and install cadius
run: >
git clone https://github.com/mach-kernel/cadius /tmp/cadius &&
make -C /tmp/cadius &&
sudo make -C /tmp/cadius install
- name: build - name: build
env: env:
TERM: xterm-256color TERM: xterm-256color
run: | run: >
make make && make package
- name: deploy new version
if: startsWith(github.ref, 'refs/tags/')
uses: ncipollo/release-action@v1.8.6
with:
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: "out/prodos-path.po"