-
-
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.
- Loading branch information
1 parent
de949ec
commit 4692ea9
Showing
39 changed files
with
15,318 additions
and
9,722 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,64 @@ | ||
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: jetli/[email protected] | ||
|
||
- name: npm install and build | ||
run: | | ||
npm ci | ||
npm run build | ||
env: | ||
CI: true | ||
|
||
- name: Read .distignore | ||
id: read_distignore | ||
run: | | ||
content=$(cat .distignore | sed 's/^/!/') | ||
echo "patterns<<EOF" >> $GITHUB_OUTPUT | ||
echo "$content" >> $GITHUB_OUTPUT | ||
echo "EOF" >> $GITHUB_OUTPUT | ||
shell: bash | ||
|
||
- name: Package | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: rust-starter | ||
retention-days: 5 | ||
if-no-files-found: error | ||
path: | | ||
${{ github.workspace }} | ||
${{ steps.read_distignore.outputs.patterns }} | ||
- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install wasm-pack | ||
uses: jetli/[email protected] | ||
|
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install wasm-pack | ||
uses: jetli/[email protected] | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.