Skip to content

Commit

Permalink
Update 0.11.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ZwerOxotnik committed Sep 24, 2022
1 parent a48c8bb commit 0f53c8b
Show file tree
Hide file tree
Showing 7 changed files with 19 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
6 changes: 5 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
on: push
on:
push:
branches:
- main

name: Lint
jobs:
lint:
Expand Down
15 changes: 0 additions & 15 deletions .github/workflows/publish.yml

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Copyright (c) 2019 Luke Perkin (https://github.com/perky)
Copyright (c) 2019-2021 ZwerOxotnik (https://github.com/ZwerOxotnik) <[email protected]>
Copyright (c) 2019-2022 ZwerOxotnik (https://github.com/ZwerOxotnik) <[email protected]>
Copyright (c) 2020 pliesveld (https://github.com/pliesveld)

Attribution 4.0 International
Expand Down
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---------------------------------------------------------------------------------------------------
Version: 0.11.2
Date: 2022-09-24
Bugfixes:
- Fixed possible crush due to incorrect law deletion (https://mods.factorio.com/mod/m-lawful-evil/discussion/632f0aa787e8c9054a0cfef6)
---------------------------------------------------------------------------------------------------
Version: 0.11.1
Date: 2021-12-22
Changes:
Expand Down
2 changes: 1 addition & 1 deletion control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1569,7 +1569,7 @@ function RevokeLaw(law, index)
script.raise_event(module.self_events.on_pre_revoke_law, {law_id = law_id})
table.remove(global.laws, index)
local laws = global.laws
for i=1, #laws do
for i=#laws, 1, -1 do
other_law = laws[i]
if other_law.linked_law == law_id then
RevokeLaw(other_law, i)
Expand Down
2 changes: 1 addition & 1 deletion info.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "m-lawful-evil",
"version": "0.11.1",
"version": "0.11.2",
"factorio_version": "1.1",
"title": "Lawful Evil",
"author": "Luke Perkin",
Expand Down

0 comments on commit 0f53c8b

Please sign in to comment.