perf: improve SEO and page performance #3
No files matched your search
@@ -7,6 +7,9 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
@@ -10,7 +10,11 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
package:
|
package:
|
||||||
if: ${{ github.server_url == 'https://github.com' }}
|
if: ${{ github.server_url == 'https://github.com' }}
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
ARCHIVE_NAME: green-tea-site-${{ github.ref_name }}.tar.gz
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
@@ -19,10 +23,10 @@ jobs:
|
|||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run check
|
- run: npm run check
|
||||||
- name: Package dist/
|
- name: Package dist/
|
||||||
run: tar -czf "green-tea-site-${{ github.ref_name }}.tar.gz" -C dist .
|
run: tar -czf "$ARCHIVE_NAME" -C dist .
|
||||||
- name: Verify .htaccess in archive
|
- name: Verify .htaccess in archive
|
||||||
run: tar -tzf "green-tea-site-${{ github.ref_name }}.tar.gz" | grep -Fx './.htaccess'
|
run: tar -tzf "$ARCHIVE_NAME" | grep -Fx './.htaccess'
|
||||||
- name: Attach to GitHub release
|
- name: Attach to GitHub release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
files: green-tea-site-${{ github.ref_name }}.tar.gz
|
files: ${{ env.ARCHIVE_NAME }}
|
||||||
Reference in new issue
Block a user