-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #84 from KevinBatdorf/update-pkgs
Update packages
- Loading branch information
Showing
39 changed files
with
15,332 additions
and
9,733 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,40 +1,59 @@ | ||
name: Build production zip file | ||
on: push | ||
name: Build and Package | ||
on: | ||
push: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 6 * * *" | ||
|
||
permissions: | ||
contents: write | ||
actions: read | ||
|
||
jobs: | ||
build: | ||
name: Build zip file | ||
concurrency: | ||
group: production - ${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install wasm-pack | ||
uses: jetli/[email protected] | ||
- name: npm install and build | ||
run: | | ||
npm ci | ||
npm run build | ||
env: | ||
CI: true | ||
|
||
- name: Package | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: rust-starter | ||
retention-days: 5 | ||
path: | | ||
${{ github.workspace }}/ | ||
!${{ github.workspace }}/node_modules/ | ||
!${{ github.workspace }}/cypress/ | ||
!${{ github.workspace }}/target/ | ||
!${{ github.workspace }}/scripts/ | ||
!${{ github.workspace }}/.git/ | ||
!${{ github.workspace }}/.github/ | ||
!${{ github.workspace }}/.wordpress-org/ | ||
!${{ github.workspace }}/assets/ | ||
!${{ github.workspace }}/scripts/ | ||
!${{ github.workspace }}/package-lock.json | ||
!${{ github.workspace }}/Cargo.lock | ||
build: | ||
name: Build and Package | ||
concurrency: | ||
group: production-${{ github.ref }} | ||
cancel-in-progress: true | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install wasm-pack | ||
uses: qmaru/[email protected] | ||
|
||
- name: npm install and build | ||
run: | | ||
npm ci | ||
npm run build | ||
env: | ||
CI: true | ||
|
||
- name: Prepare artifact | ||
run: | | ||
mkdir artifact | ||
rsync -av --exclude-from=.distignore . artifact/ | ||
- name: Package | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: rust-starter | ||
path: artifact | ||
retention-days: 3 | ||
if-no-files-found: error | ||
compression-level: 0 | ||
|
||
- name: Update README | ||
if: github.ref == 'refs/heads/main' | ||
run: | | ||
artifact_url="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" | ||
sed -i '/\[Latest Build\]/d' README.md | ||
echo -e "\n[Latest Build]($artifact_url)" >> README.md | ||
- name: Commit changes | ||
if: github.ref == 'refs/heads/main' | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: Update README with latest build link | ||
file_pattern: 'README.md' |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.