diff --git a/.github/workflows/github-release.yml b/.github/workflows/github-release.yml deleted file mode 100644 index 85afaaa..0000000 --- a/.github/workflows/github-release.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: Check and Release as .zip -on: push -jobs: - release-github: - runs-on: ubuntu-latest - steps: - - name: Check out repository code - uses: actions/checkout@v4 - - name: Create Factorio mod package - uses: Roang-zero1/factorio-mod-package@master - - name: Create Github Release and upload artifacts - uses: fnkr/github-action-ghr@v1 - if: startsWith(github.ref, 'refs/tags/') - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GHR_PATH: dist/ - GHR_REPLACE: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..bfaab88 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,52 @@ +name: Release + +on: + push: + tags: + - '*' + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Verify version + run: | + VERSION=$(jq -r .version info.json) + if [[ "${{ github.ref_name }}" != "$VERSION" ]]; then + echo "Tag name ${{ github.ref_name }} does not match version in info.json: $VERSION" + exit 1 + fi + + - name: Verify changelog + run: | + if ! grep -q "Version: ${{ github.ref_name }}" changelog.txt; then + echo "Changelog does not contain an entry for version ${{ github.ref_name }}" + exit 1 + fi + + - name: Create zip archive + run: zip -r creative-mod-${{ github.ref_name }}.zip . -x "*.git*" -x ".github*" + + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref_name }} + release_name: Release ${{ github.ref_name }} + draft: false + prerelease: false + + - name: Upload Release Asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: creative-mod-${{ github.ref_name }}.zip + asset_name: creative-mod-${{ github.ref_name }}.zip + asset_content_type: application/zip diff --git a/README.md b/README.md index 870985d..9a4a5b1 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,27 @@ -# Factorio - Creative Mode +# Creative Mode -Based on the old Creative Mode mod created by Y.Petremann, then patched by Pac0master, and also the Test Mode mod created by rk84. By enabling Creative Mode in the game, you can access objects that can generate unlimited items, fluid or energy, or nullify them. Perfect for testing purpose or making initial setup for games. +This mod provides a suite of tools and entities that allow for creative building, testing, and experimentation within Factorio. It's perfect for quickly setting up bases, testing complex designs, or just having fun without the constraints of normal gameplay. -This is a fork of the Creative Mode (Fix for 0.16) by [Chrisgbk](https://mods.factorio.com/user/chrisgbk). +## Features -[Official Forum post](https://forums.factorio.com/viewtopic.php?f=97&t=28005) +* **Unlimited Item Generation:** Access creative chests and other entities that can generate any item in the game. +* **Unlimited Fluid Generation:** Generate any fluid in the game with creative fluid sources. +* **Unlimited Energy Generation:** Use creative energy sources to power your base without the need for traditional power setups. +* **Item and Fluid Voiding:** Instantly remove unwanted items and fluids with void entities. +* **Instant Blueprinting and Deconstruction:** Quickly build and remove structures with instant blueprint and deconstruction tools. +* **Magic Wands:** Use magic wands to modify terrain, heal entities, and more. +* **Configurable Entities:** Customize the behavior of creative entities to suit your needs. +* **Mod Compatibility:** Designed to be compatible with other popular Factorio mods. + +## Usage + +To use Creative Mode, simply enable the mod in the Factorio mod manager. Once enabled, you'll have access to the creative tools and entities in the game. + +## Credits + +This mod is based on the original Creative Mode mod by Y.Petremann, with patches by Pac0master, and also incorporates elements from the Test Mode mod by rk84. It is a fork of the Creative Mode (Fix for 0.16) by [Chrisgbk](https://mods.factorio.com/user/chrisgbk). + +## Links + +* [Official Forum Post](https://forums.factorio.com/viewtopic.php?f=97&t=28005) +* [Original Mod by Chrisgbk](https://mods.factorio.com/user/chrisgbk)