diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e43bf01..8922e87 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,7 +14,6 @@ jobs: target: [release, development] os: - ubuntu-latest - - windows-latest env: RUST_BACKTRACE: full @@ -48,8 +47,47 @@ jobs: - name: ๐Ÿงช Run all tests run: make test - #- name: ๐Ÿš€ Upload release artifacts - # uses: actions/upload-artifact@v2 - # with: - # name: release-${{ matrix.os }} - # path: target/release/* + - name: ๐Ÿ—ƒ Store Linux artifacts (release only) + uses: actions/upload-artifact@v4 + if: startsWith(github.ref, 'refs/tags/v') && matrix.target == 'release' + with: + name: compotes_artifacts_${{ matrix.os }} + overwrite: true + path: | + target/release/pagoo + + release: + runs-on: ubuntu-latest + needs: + - build + if: startsWith(github.ref, 'refs/tags/v') + steps: + - uses: actions/checkout@v4 + + - name: Create release + uses: actions/create-release@v1 + id: create_release + with: + draft: false + prerelease: false + release_name: ${{ steps.version.outputs.version }} + tag_name: ${{ github.ref }} + #body_path: CHANGELOG.md + env: + GITHUB_TOKEN: ${{ github.token }} + + - name: ๐Ÿ—ƒ Download built artifacts + uses: actions/download-artifact@v4 + with: + path: target/release + merge-multiple: true + + - name: Upload Linux executable + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: target/release/pagoo + asset_name: pagoo_${{ github.ref_name }} + tag: ${{ github.ref_name }} + overwrite: true + file_glob: true diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..dbafe24 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,3 @@ +# v0.1.0 + +First release, nothing to say in particular.