Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/ci pull master release #57

Merged
merged 6 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/pull-develop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ jobs:
cargo pants

- name: Restore .env file
run: |
echo "${{ vars.NODES_ENV }}" > packages/kos-sdk/.env.nodes
run: echo "$NODES_ENV" | base64 -d > packages/kos-sdk/.env.nodes
env:
NODES_ENV: ${{ secrets.NODES_ENV }}

- name: Run Tests
run: cargo test
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/pull-master-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
with_cache: true

- name: Restore .env file
run: echo $NODES_ENV | base64 -d > packages/kos-sdk/.env.nodes
run: echo "$NODES_ENV" | base64 -d > packages/kos-sdk/.env.nodes
env:
NODES_ENV: ${{ secrets.NODES_ENV }}
brunocampos-ssa marked this conversation as resolved.
Show resolved Hide resolved

Expand Down Expand Up @@ -72,6 +72,9 @@ jobs:
- name: Build
run: make webpack-npm

- name: Package kos-js
run: zip -r ./demo/kos-js.zip ./demo/kos || { echo 'Packaging failed'; exit 1; }

- name: Capture Release Notes
id: release_notes
run: |
Expand All @@ -82,7 +85,7 @@ jobs:
- name: Create GitHub Release
run: |
VERSION=$(cat VERSION)
gh release create "v$VERSION" ./demo/kos --title "Release v$VERSION" --notes "${{ steps.release_notes.outputs.notes }}"
gh release create "v$VERSION" ./demo/kos-js.zip --title "Release v$VERSION" --notes "${{ steps.release_notes.outputs.notes }}" || { echo 'Release creation failed'; exit 1; }
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
2 changes: 1 addition & 1 deletion demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"http-server": "^14.1.1",
"rimraf": "^3.0.0",
"rust-wasm-loader": "^0.2.0",
"webpack": "^4.46.0",
"webpack": "^5.94.0",
"webpack-cli": "^3.1.2",
"webpack-dev-server": "^3.1.10"
}
Expand Down
Loading