Skip to content

Commit

Permalink
Workflow: Deploy on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
inexorabletash committed Jul 23, 2021
1 parent 7587db2 commit ecf7459
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ name: build
on:
push:
branches: [ main ]
tags: ['*']
pull_request:
branches: [ main ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
Expand All @@ -17,13 +16,26 @@ jobs:
- uses: actions/checkout@v2

- name: build and install cc65 components
run: |
git clone https://github.com/cc65/cc65 /tmp/cc65
sudo make -C /tmp/cc65 ca65 ld65 avail
run: >
git clone https://github.com/cc65/cc65 /tmp/cc65 &&
sudo make -C /tmp/cc65 ca65 ld65 avail &&
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
env:
TERM: xterm-256color
run: |
make
run: >
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"

0 comments on commit ecf7459

Please sign in to comment.