Skip to content

Commit

Permalink
Deploy on new git tags
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonni committed Oct 13, 2023
1 parent 6232d74 commit d86b6db
Showing 1 changed file with 4 additions and 32 deletions.
36 changes: 4 additions & 32 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Deploy to GitHub Pages

on:
# push:
# tags:
# - '*' # Push events to all tags
push:
tags:
- '*' # Push events to all tags
workflow_dispatch:
inputs:
tag:
Expand All @@ -14,42 +14,14 @@ jobs:
build:
name: Build Check
uses: ./.github/workflows/build.yml
bump:
name: Bump Version
uses: ./.github/workflows/bump.yml
deploy:
needs: [build, bump]
needs: [build]
# Important: must be run from Linux.
runs-on: ubuntu-latest
steps:
- name: Checkout Git repository
uses: actions/checkout@v3

- name: Download macOS ARM build
uses: actions/download-artifact@v3
with:
name: build-macos-aarch64
path: ./artifacts

- name: Download macOS AMD64 build
uses: actions/download-artifact@v3
with:
name: build-macos-amd64
path: ./artifacts

- name: Download Windows build
uses: actions/download-artifact@v3
with:
name: build-windows-amd64
# Windows is not in a tarball, so we extract to a separate directory.
path: ./artifacts/windows

- name: Download Linux AMD64 build
uses: actions/download-artifact@v3
with:
name: build-linux-amd64
path: ./artifacts

- name: Run Conveyor
if: github.event_name == 'push'
uses: hydraulic-software/conveyor/actions/build@v11.4
Expand Down

0 comments on commit d86b6db

Please sign in to comment.