diff --git a/.github/workflows/autoPublish.yml b/.github/workflows/autoPublish.yml index c386fed..64342c3 100644 --- a/.github/workflows/autoPublish.yml +++ b/.github/workflows/autoPublish.yml @@ -33,6 +33,8 @@ 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: @@ -40,17 +42,12 @@ jobs: 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}} \ No newline at end of file + asset_path: ./${{steps.mod_name.outputs.prop}}_${{steps.version.outputs.prop}}.zip + asset_name: ${{steps.mod_name.outputs.prop}}_${{steps.version.outputs.prop}}.zip \ No newline at end of file diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 510e1bd..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,19 +0,0 @@ -on: - push: - branches: - - main - -name: Publish -jobs: - publish: - runs-on: ubuntu-latest - steps: - - name: Checkout repository and submodules - uses: actions/checkout@v2 - with: - submodules: recursive - - name: Publish Mod - uses: shanemadden/factorio-mod-portal-publish@stable - env: - FACTORIO_PASSWORD: ${{ secrets.FACTORIO_PASSWORD }} - FACTORIO_USER: ${{ secrets.FACTORIO_USER }}