diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..ed8d2e9 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,23 @@ +name: Release + +on: + push: + tags: + - "*" + +permissions: + contents: write + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + with: + fetch-depth: 0 + - run: git log $(git describe --tags --abbrev=0 HEAD~1)..HEAD --oneline > changelog.txt + - uses: softprops/action-gh-release@v2 + with: + make_latest: true + body_path: changelog.txt + files: astrolobot.py \ No newline at end of file