diff --git a/.github/release_template.md b/.github/release_template.md new file mode 100644 index 000000000..a47628b3c --- /dev/null +++ b/.github/release_template.md @@ -0,0 +1,65 @@ +#### Q: How do I download DFHack? +**A:** Either add to your Steam library from our [Steam page](https://store.steampowered.com/app/2346660/DFHack) or scroll to the latest release on our [GitHub releases page](https://github.com/DFHack/dfhack/releases), expand the "Assets" list, and download the file for your platform (e.g. `dfhack-XX.XX-rX-Windows-64bit.zip`. + +------------- + +This release is compatible with all distributions of Dwarf Fortress: [Steam](https://store.steampowered.com/app/975370/Dwarf_Fortress/), [Itch](https://kitfoxgames.itch.io/dwarf-fortress), and [Classic](https://www.bay12games.com/dwarves/). + +- [Install DFHack from Steam](https://store.steampowered.com/app/2346660/DFHack) +- [Manual install](https://docs.dfhack.org/en/stable/docs/Installing.html#installing) +- [Quickstart guide (for players)](https://docs.dfhack.org/en/stable/docs/Quickstart.html#quickstart) +- [Modding guide (for modders)](https://docs.dfhack.org/en/stable/docs/guides/modding-guide.html) + +Please report any issues (or feature requests) on the DFHack [GitHub issue tracker](https://github.com/DFHack/dfhack/issues). When reporting issues, please upload a zip file of your savegame and a zip file of your `mods` directory to the cloud and add links to the GitHub issue. Make sure your files are downloadable by "everyone with the link". We need your savegame to reproduce the problem and test the fix, and we need your active mods so we can load your savegame. Issues with savegames and mods attached get fixed first! + +Announcements +---------------------------------- + +
+Annc 1, PSAs + +### Annc 1 + + + +### PSAs + +As always, remember that, just like the vanilla DF game, DFHack tools can also have bugs. It is a good idea to **save often and keep backups** of the forts that you care about. + +Many DFHack tools that worked in previous (pre-Steam) versions of DF have not been updated yet and are marked with the "unavailable" tag in their docs. If you try to run them, they will show a warning and exit immediately. You can run the command again to override the warning (though of course the tools may not work). We make no guarantees of reliability for the tools that are marked as "unavailable". + +The in-game interface for running DFHack commands (`gui/launcher`) will not show "unavailable" tools by default. You can still run them if you know their names, or you can turn on dev mode by hitting Ctrl-D while in `gui/launcher` and they will be added to the autocomplete list. Some tools do not compile yet and are not available at all, even when in dev mode. + +If you see a tool complaining about the lack of a cursor, know that it's referring to the **keyboard** cursor (which used to be the only real option in Dwarf Fortress). You can enable the keyboard cursor by entering mining mode or selecting the dump/forbid tool and hitting Alt-K (the DFHack keybinding for `toggle-kbd-cursor`. We're working on making DFHack tools more mouse-aware and accessible so this step isn't necessary in the future. + +
+ +Highlights +---------------------------------- + +
+Highlight 1, Highlight 2 + +### Highlight 1 + +Demo screenshot/vidcap + +Text + +### Highlight 2 + +Demo screenshot/vidcap + +Text + +
+ +Generated release notes +==================== + +
+ New tools, fixes, and improvements + +RELEASE NOTES HERE + +
diff --git a/.github/workflows/github-release.yml b/.github/workflows/github-release.yml new file mode 100644 index 000000000..e37960ef1 --- /dev/null +++ b/.github/workflows/github-release.yml @@ -0,0 +1,83 @@ +name: Releases + +on: + push: + tags: + - '*-r[0-9]+' + workflow_dispatch: + inputs: + tag: + description: tag + required: true + +jobs: + package-win64: + name: Windows release + uses: ./.github/workflows/build-windows.yml + with: + artifact-name: win64-release + ref: ${{ github.event.inputs.tag }} + cache-id: release + cache-readonly: true + stonesense: true + docs: true + secrets: inherit + + package-linux64: + name: Linux release + uses: ./.github/workflows/build-linux.yml + with: + artifact-name: linux64-release + ref: ${{ github.event.inputs.tag }} + cache-id: release + cache-readonly: true + stonesense: true + docs: true + secrets: inherit + + create-update-release: + name: GitHub release + needs: + - package-win64 + - package-linux64 + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Clone DFHack + uses: actions/checkout@v3 + with: + ref: ${{ github.event.inputs.tag }} + - name: Stage win64 release + uses: actions/download-artifact@v3 + with: + name: win64-release + path: win64 + - name: Create win64 release archive + run: | + cd win64 + zip -r ../dfhack-${{ github.event.inputs.tag }}-Windows-64bit.zip . + - name: Stage linux64 release + uses: actions/download-artifact@v3 + with: + name: linux64-release + path: linux64 + - name: Create linux64 release archive + run: | + cd linux64 + tar cjf ../dfhack-${{ github.event.inputs.tag }}-Linux-64bit.tar.bz2 . + - name: Create or update GitHub release + uses: ncipollo/release-action@v1 + with: + artifacts: "dfhack-*" + bodyFile: ".github/release_template.md" + allowUpdates: true + artifactErrorsFailBuild: true + draft: true + name: "DFHack ${{ github.event.inputs.tag }}" + omitBodyDuringUpdate: true + omitDraftDuringUpdate: true + omitNameDuringUpdate: true + omitPrereleaseDuringUpdate: true + replacesArtifacts: true + tag: ${{ github.event.inputs.tag }}