Skip to content

Commit

Permalink
Update readme example to yml format
Browse files Browse the repository at this point in the history
  • Loading branch information
shanemadden committed Sep 28, 2019
1 parent d8a023c commit a08443b
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,19 @@ Non-tag pushes will be ignored, but when a tag is pushed that is valid and match

An example workflow to publish tagged releases:

workflow "Publish mod to portal" {
on = "push"
resolves = ["shanemadden/factorio-mod-portal-publish@stable"]
}

action "shanemadden/factorio-mod-portal-publish@stable" {
uses = "shanemadden/factorio-mod-portal-publish@stable"
secrets = ["FACTORIO_USER", "FACTORIO_PASSWORD"]
}
on: push
name: Publish
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Publish Mod
uses: shanemadden/factorio-mod-portal-publish@stable
env:
FACTORIO_PASSWORD: ${{ secrets.FACTORIO_PASSWORD }}
FACTORIO_USER: ${{ secrets.FACTORIO_USER }}


`FACTORIO_USER` and `FACTORIO_PASSWORD` secrets should be valid credentials to the Factorio mod portal with permissions to edit the mod defined in info.json.

Expand Down

0 comments on commit a08443b

Please sign in to comment.