Skip to content

Commit 1e7bd4d

Browse files
committed
remove self-hosted runner
1 parent e9d7afd commit 1e7bd4d

1 file changed

Lines changed: 25 additions & 17 deletions

File tree

.github/workflows/deploy.yaml

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
1-
# Release to Savant or publish to Maven.
2-
# Only runs via manual workflow dispatch.
3-
4-
# Run locally with act:
5-
#
6-
# act pull_request [--input command=[command]] \
7-
# --platform fusionauth-standard=[ecr-repo-name]/fusionauth-standard:latest] \
8-
# --workflows ./.github/workflows/deploy.yaml \
9-
# --env-file <(aws configure export-credentials --profile [aws-profile] --format env)
10-
1+
---
112
name: Deploy
123

134
on:
@@ -24,18 +15,37 @@ permissions:
2415

2516
jobs:
2617
deploy:
27-
if: |
28-
github.event_name == 'workflow_dispatch' &&
29-
(inputs.command == 'release' || inputs.command == 'publish')
30-
runs-on: fusionauth-standard
18+
runs-on: ubuntu-latest
19+
defaults:
20+
run:
21+
shell: /usr/bin/bash -l -e -o pipefail {0}
3122
steps:
3223
- name: checkout
3324
uses: actions/checkout@v4
3425

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

@@ -58,10 +68,8 @@ jobs:
5868
5969
- name: release to svn
6070
if: inputs.command == 'release'
61-
shell: bash -l {0}
6271
run: sb release
6372

6473
- name: publish to packagist
6574
if: inputs.command == 'publish'
66-
shell: bash -l {0}
6775
run: sb publish

0 commit comments

Comments
 (0)