Skip to content

Commit

Permalink
Merge pull request #81 from FusionAuth/jj/release-workflow
Browse files Browse the repository at this point in the history
add release workflow
  • Loading branch information
johnjeffers committed Jun 7, 2024
2 parents 9be0da0 + d1eeda6 commit 6347fd7
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Run locally with act:
#
# act pull_request [--input command=[command]] \
# --platform fusionauth-builder=[ecr-repo-name]/fusionauth-builder:latest] \
# --workflows ./.github/workflows/release.yaml \
# --env-file <(aws configure export-credentials --profile [aws-profile] --format env)

name: Deploy

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
inputs:
command:
type: choice
options:
- test # build only
- release # build & release to svn
default: build

permissions:
contents: read

jobs:
test:
if: |
github.event_name == 'pull_request' ||
github.event_name == 'push' ||
github.event_name == 'workflow_dispatch' && inputs.command == 'test'
runs-on: fusionauth-builder
steps:
- name: checkout
uses: actions/checkout@v4

- name: compile
shell: bash -l {0}
run: |
echo "TODO: enable tests"
# We need an instance to run tests against before we can enable this.
# sb test
deploy:
if: |
github.event_name == 'workflow_dispatch' && inputs.command == 'release'
runs-on: fusionauth-builder
steps:
- name: checkout
uses: actions/checkout@v4

- name: release to svn
if: inputs.command == 'release'
shell: bash -l {0}
run: sb release

0 comments on commit 6347fd7

Please sign in to comment.