Deploy to hedy.org #246
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
name: Deploy to hedy.org | |
on: | |
# This gets run by hand | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
# Restrict who can run this workflow | |
- if: github.actor != 'Felienne' && github.actor != 'jpelay' | |
run: | | |
echo "You must be Felienne to run this workflow :D" >&2 | |
exit 1 | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: 'Install Heroku CLI' | |
run: curl https://cli-assets.heroku.com/install.sh | sh | |
- uses: akhileshns/[email protected] # This is the action | |
with: | |
heroku_api_key: ${{secrets.HEROKU_API_KEY}} | |
heroku_app_name: hedy-beta | |
heroku_email: [email protected] | |
- name: "Send message on Discord" | |
if: success() | |
uses: discord-actions/message@v2 | |
with: | |
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }} | |
message: "Deployed to hedy.org" |