-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Zeeshan Lakhani
authored
Sep 5, 2023
1 parent
e27cc43
commit 5c59174
Showing
15 changed files
with
378 additions
and
260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,63 +18,45 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
jobs: | ||
release-please: | ||
runs-on: [ubuntu-latest, windows-latest, macos-latest] | ||
publish-npm: | ||
if: > | ||
github.ref == 'refs/heads/main' && | ||
github.repository_owner == 'ipvm-wg' && | ||
github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' | ||
(github.event_name == 'workflow_dispatch' && github.event.inputs.force-publish) || github.event.workflow_run.conclusion == 'success' | ||
outputs: | ||
releases_created: > | ||
${{ steps.release.outputs['homestar-core--release_created'] || | ||
steps.release.outputs['homestar-runtime--release_created'] || | ||
steps.release.outputs['homestar-wasm--release_created'] }} | ||
steps: | ||
- name: Run release-please | ||
id: release | ||
uses: google-github-actions/release-please-action@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
default-branch: main | ||
command: manifest | ||
extra-files: | | ||
README.md | ||
publish-release-crates: | ||
runs-on: ubuntu-latest | ||
needs: [ release-please ] | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
if: ${{ needs.release-please.outputs.releases_created || github.event.inputs.force-publish }} | ||
|
||
steps: | ||
- name: Generate GitHub token | ||
uses: tibdex/github-app-token@v1 | ||
id: generate-token | ||
with: | ||
app_id: ${{ secrets.APP_ID }} | ||
private_key: ${{ secrets.APP_PRIVATE_KEY }} | ||
|
||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ steps.generate-token.outputs.token }} | ||
|
||
- name: Cache Project | ||
uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Install Rust Toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: Install Cargo Workspaces | ||
env: | ||
RUSTFLAGS: '-Copt-level=1' | ||
uses: dtolnay/install@master | ||
with: | ||
crate: cargo-workspaces | ||
|
||
- name: Verify Publishing of crates | ||
uses: katyo/publish-crates@v2 | ||
with: | ||
dry-run: true | ||
|
||
- name: Cargo Publish to crates.io | ||
- name: Run release-plz | ||
uses: MarcoIeni/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }} | ||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} | ||
run: cargo workspaces publish --from-git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.