diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml deleted file mode 100644 index 1394dce63bb..00000000000 --- a/.github/workflows/doc.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Docs - -on: - workflow_dispatch: - release: - types: [released] - -jobs: - docs: - runs-on: windows-latest - steps: - - uses: actions/checkout@v3 - - uses: dtolnay/rust-toolchain@stable - - run: cargo doc --workspace --all-features - - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./target/doc - publish_branch: gh-pages diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000000..2f1ddef5dcc --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,48 @@ +name: Release + +on: + workflow_dispatch: + release: + types: [released] + +jobs: + docs: + name: Docs + runs-on: windows-latest + steps: + - uses: actions/checkout@v3 + - uses: dtolnay/rust-toolchain@stable + - run: cargo doc --workspace --all-features + - uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./target/doc + publish_branch: gh-pages + release: + name: Release + runs-on: ${{ matrix.os }} + strategy: + matrix: + include: + - os: ubuntu-latest + file: evtc_dump + name: evtc_dump_linux + - os: windows-latest + file: evtc_dump.exe + name: evtc_dump_win.exe + - os: macos-latest + file: evtc_dump + name: evtc_dump_mac + steps: + - uses: actions/checkout@v3 + - uses: dtolnay/rust-toolchain@stable + - run: cargo build --release --package evtc_dump + - uses: actions/upload-artifact@v3 + with: + name: ${{ matrix.name }} + path: target/release/${{ matrix.file }} + - uses: shogo82148/actions-upload-release-asset@v1 + with: + upload_url: ${{ github.event.release.upload_url }} + asset_name: ${{ matrix.name }} + asset_path: target/release/${{ matrix.file }}