Merge pull request #5 from symphonicabyss1/master #19
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: Sync Resources | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
environment: prod | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Docker login | |
uses: docker/[email protected] | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run sync | |
run: | | |
docker run -v ${{ github.workspace }}/data:/app/data -e DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }} ghcr.io/the-balance-ffxiv/discord-static-resource-bot:master | |
# - name: Run sync | |
# uses: addnab/docker-run-action@v3 | |
# with: | |
# image: ghcr.io/the-balance-ffxiv/discord-static-resource-bot:master | |
# options: -v ${{ github.workspace }}/data:/app/data -e DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }} | |