Skip to content

Commit

Permalink
fix: update with plan
Browse files Browse the repository at this point in the history
  • Loading branch information
etolbakov authored Nov 16, 2023
1 parent f5dde06 commit b321f83
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,34 @@ env:
PACKAGE_NAME: archeologit

jobs:

plan:
runs-on: ubuntu-latest
outputs:
val: ${{ steps.plan.outputs.manifest }}
tag: ${{ !github.event.pull_request && github.ref_name || '' }}
tag-flag: ${{ !github.event.pull_request && format('--tag={0}', github.ref_name) || '' }}
publishing: ${{ !github.event.pull_request }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install cargo-dist
run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.4.0/cargo-dist-installer.sh | sh"
- id: plan
run: |
cargo dist plan ${{ !github.event.pull_request && format('--tag={0}', github.ref_name) || '' }} --output-format=json > dist-manifest.json
echo "cargo dist plan ran successfully"
cat dist-manifest.json
echo "manifest=$(jq -c "." dist-manifest.json)" >> "$GITHUB_OUTPUT"
- name: "Upload dist-manifest.json"
uses: actions/upload-artifact@v3
with:
name: artifacts
path: dist-manifest.json

# Update release PR
release_please:
name: Execute release chores
Expand All @@ -30,6 +58,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
package-name: ${{ env.PACKAGE_NAME }}
release-type: rust
draft: true

github_build:
name: Build release binaries
Expand Down

0 comments on commit b321f83

Please sign in to comment.