Skip to content

Commit c52c09a

Browse files
authored
Merge pull request #37 from FusionAuth/jj/remove-self-hosted-runner
remove self-hosted runner
2 parents 79ba390 + 8cdf357 commit c52c09a

1 file changed

Lines changed: 25 additions & 14 deletions

File tree

.github/workflows/deploy.yaml

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
# Run locally with act:
2-
#
3-
# act pull_request [--input command=[command]] \
4-
# --platform fusionauth-standard=[ecr-repo-name]/fusionauth-standard:latest] \
5-
# --workflows ./.github/workflows/deploy.yaml \
6-
# --env-file <(aws configure export-credentials --profile [aws-profile] --format env)
7-
1+
---
82
name: Deploy
93

104
on:
@@ -22,18 +16,37 @@ permissions:
2216

2317
jobs:
2418
deploy:
25-
if: |
26-
github.event_name == 'workflow_dispatch' &&
27-
(inputs.command == 'release' || inputs.command == 'publish')
28-
runs-on: fusionauth-standard
19+
runs-on: ubuntu-latest
20+
defaults:
21+
run:
22+
shell: /usr/bin/bash -l -e -o pipefail {0}
2923
steps:
3024
- name: checkout
3125
uses: actions/checkout@v4
3226

27+
- name: setup java
28+
uses: actions/setup-java@v4
29+
with:
30+
distribution: temurin
31+
java-version: 21
32+
java-package: jre
33+
34+
- name: install savant
35+
run: |
36+
curl -O https://repository.savantbuild.org/org/savantbuild/savant-core/2.0.0/savant-2.0.0.tar.gz
37+
tar xzvf savant-2.0.0.tar.gz
38+
savant-2.0.0/bin/sb --version
39+
SAVANT_PATH=$(realpath -s "./savant-2.0.0/bin")
40+
echo "${SAVANT_PATH}" >> $GITHUB_PATH
41+
mkdir -p ~/.savant/plugins
42+
cat << EOF > ~/.savant/plugins/org.savantbuild.plugin.java.properties
43+
21=${JAVA_HOME}
44+
EOF
45+
3346
- name: set aws credentials
3447
uses: aws-actions/configure-aws-credentials@v4
3548
with:
36-
role-to-assume: arn:aws:iam::752443094709:role/github-actions
49+
role-to-assume: arn:aws:iam::752443094709:role/gha-fusionauth-python-client
3750
role-session-name: aws-auth-action
3851
aws-region: us-west-2
3952

@@ -67,10 +80,8 @@ jobs:
6780
6881
- name: release to svn
6982
if: inputs.command == 'release'
70-
shell: bash -l {0}
7183
run: sb release
7284

7385
- name: publish to pypi
7486
if: inputs.command == 'publish'
75-
shell: bash -l {0}
7687
run: sb publish

0 commit comments

Comments
 (0)