-
Notifications
You must be signed in to change notification settings - Fork 595
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* build: Publish snapshots * and publish docs with new ssh key * email on failure * remove comment * determineLatestSnapshot from snapshot doc version
- Loading branch information
Showing
7 changed files
with
72 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ jobs: | |
publish-artifacts: | ||
name: Publish artifacts | ||
runs-on: ubuntu-22.04 | ||
if: github.event.repository.fork == false | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
@@ -38,25 +39,60 @@ jobs: | |
PUBLISH_USER: ${{ secrets.PUBLISH_USER }} | ||
PUBLISH_PASSWORD: ${{ secrets.PUBLISH_PASSWORD }} | ||
|
||
- name: Email on failure | ||
if: ${{ failure() }} | ||
uses: dawidd6/action-send-mail@6063705cefe50cb915fc53bb06d4049cae2953b2 | ||
with: | ||
server_address: smtp.gmail.com | ||
server_port: 465 | ||
secure: true | ||
username: ${{secrets.MAIL_USERNAME}} | ||
password: ${{secrets.MAIL_PASSWORD}} | ||
subject: "Failed: ${{ github.workflow }} / ${{ github.job }}" | ||
to: ${{secrets.MAIL_SEND_TO}} | ||
from: Akka CI | ||
body: | | ||
Job ${{ github.job }} in workflow ${{ github.workflow }} of ${{github.repository}} failed! | ||
https://github.com/${{github.repository}}/actions/runs/${{github.run_id}} | ||
publish-docs: | ||
name: Publish documentation | ||
runs-on: ubuntu-22.04 | ||
if: github.event.repository.fork == false | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves | ||
fetch-depth: 0 | ||
|
||
- name: Cache Coursier cache | ||
uses: coursier/[email protected] | ||
|
||
- name: Set up JDK 11 | ||
uses: coursier/[email protected] | ||
with: | ||
jvm: temurin:1.11 | ||
|
||
- name: Publish Documentation | ||
run: | | ||
eval "$(ssh-agent -s)" && echo $SCP_SECRET | base64 -d > /tmp/id_rsa && chmod 600 /tmp/id_rsa && ssh-add /tmp/id_rsa && sbt -Dakka.genjavadoc.enabled=true publishRsync | ||
- name: Publish | ||
run: |- | ||
eval "$(ssh-agent -s)" | ||
echo $AKKA_RSYNC_GUSTAV | base64 -d > .github/id_rsa | ||
chmod 600 .github/id_rsa | ||
ssh-add .github/id_rsa | ||
sbt -Dakka.genjavadoc.enabled=true publishRsync | ||
env: | ||
SCP_SECRET: ${{ secrets.SCP_SECRET }} | ||
AKKA_RSYNC_GUSTAV: ${{ secrets.AKKA_RSYNC_GUSTAV }} | ||
|
||
- name: Email on failure | ||
if: ${{ failure() }} | ||
uses: dawidd6/action-send-mail@6063705cefe50cb915fc53bb06d4049cae2953b2 | ||
with: | ||
server_address: smtp.gmail.com | ||
server_port: 465 | ||
secure: true | ||
username: ${{secrets.MAIL_USERNAME}} | ||
password: ${{secrets.MAIL_PASSWORD}} | ||
subject: "Failed: ${{ github.workflow }} / ${{ github.job }}" | ||
to: ${{secrets.MAIL_SEND_TO}} | ||
from: Akka CI | ||
body: | | ||
Job ${{ github.job }} in workflow ${{ github.workflow }} of ${{github.repository}} failed! | ||
https://github.com/${{github.repository}}/actions/runs/${{github.run_id}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters