Skip to content

Commit

Permalink
Change GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ZwerOxotnik committed May 11, 2022
1 parent d72ddd4 commit f9fcf8c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 28 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/autoPublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,24 +33,21 @@ jobs:
with:
path: 'info.json'
prop_path: 'name'
- name: Zip mod
run: bash ./.scripts/zip_mod.sh
- uses: marvinpinto/action-automatic-releases@latest
id: aar
with:
automatic_release_tag: "${{steps.version.outputs.prop}}"
title: "For factorio ${{steps.factorio_version.outputs.prop}}"
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
- name: Download the file
uses: suisei-cn/actions-download-file@v1
id: downloadfile # Remember to give an ID if you need the output
with:
url: https://github.com/${{github.repository}}/archive/refs/tags/${{steps.aar.outputs.automatic_releases_tag}}.zip
target: temp/
- run: cd temp && mv ${{steps.aar.outputs.automatic_releases_tag}}.zip ${{steps.mod_name.outputs.prop}}_${{steps.aar.outputs.automatic_releases_tag}}.zip
files: |
./${{steps.mod_name.outputs.prop}}_${{steps.version.outputs.prop}}.zip
- uses: TGNThump/factorio-publish-mod-action@v1
with:
mod_portal_username: ${{ secrets.FACTORIO_USER }}
mod_portal_password: ${{ secrets.FACTORIO_PASSWORD }}
mod_name: ${{steps.mod_name.outputs.prop}}
asset_path: ./temp/${{steps.mod_name.outputs.prop}}_${{steps.aar.outputs.automatic_releases_tag}}.zip
asset_name: ${{steps.aar.outputs.automatic_releases_tag}}
asset_path: ./${{steps.mod_name.outputs.prop}}_${{steps.version.outputs.prop}}.zip
asset_name: ${{steps.mod_name.outputs.prop}}_${{steps.version.outputs.prop}}.zip
19 changes: 0 additions & 19 deletions .github/workflows/publish.yml

This file was deleted.

0 comments on commit f9fcf8c

Please sign in to comment.