Skip to content
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
8 changes: 4 additions & 4 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/build
/node_modules
/.git
/.vscode
/build
/node_modules
/.git
/.vscode
/.github
116 changes: 58 additions & 58 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
@@ -1,58 +1,58 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main
pull_request:
branches:
- main

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Checkout code
uses: actions/checkout@v5

- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: "lts/*"
cache: npm

- name: Disable AppArmor
run: echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns

- name: Install dependencies
run: npm ci

- name: Build project
run: npm run build
env:
PUBLIC_PATH: /Yasgui/

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./build

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
name: Deploy to GitHub Pages
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: "lts/*"
cache: npm
- name: Disable AppArmor
run: echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns
- name: Install dependencies
run: npm ci
- name: Build project
run: npm run build
env:
PUBLIC_PATH: /Yasgui/
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./build
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
118 changes: 59 additions & 59 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,60 +1,60 @@
name: Publish to npm

on:
release:
types: [published]

permissions:
contents: read
id-token: write

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'

# Ensure npm 11.5.1 or later for trusted publishing
- run: npm install -g npm@latest

- name: Install dependencies
run: npm ci

- name: Build packages
run: npm run build

- name: Update package versions from release tag
run: |
TAG_VERSION=${GITHUB_REF#refs/tags/}
TAG_VERSION=${TAG_VERSION#v}
echo "Updating all packages to version $TAG_VERSION"

# Update each package version
for package_dir in packages/*/; do
if [ -f "${package_dir}package.json" ]; then
echo "Updating version in ${package_dir}package.json"
cd "$package_dir"
npm version $TAG_VERSION --no-git-tag-version --allow-same-version
cd ../..
fi
done

- name: Copy README to all packages
run: |
echo "Copying README.md to all packages"
for package_dir in packages/*/; do
if [ -f "${package_dir}package.json" ]; then
echo "Copying README.md to ${package_dir}"
cp README.md "${package_dir}README.md"
fi
done

- name: Publish to npm using Changesets
name: Publish to npm
on:
release:
types: [published]
permissions:
contents: read
id-token: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
# Ensure npm 11.5.1 or later for trusted publishing
- run: npm install -g npm@latest
- name: Install dependencies
run: npm ci
- name: Build packages
run: npm run build
- name: Update package versions from release tag
run: |
TAG_VERSION=${GITHUB_REF#refs/tags/}
TAG_VERSION=${TAG_VERSION#v}
echo "Updating all packages to version $TAG_VERSION"
# Update each package version
for package_dir in packages/*/; do
if [ -f "${package_dir}package.json" ]; then
echo "Updating version in ${package_dir}package.json"
cd "$package_dir"
npm version $TAG_VERSION --no-git-tag-version --allow-same-version
cd ../..
fi
done
- name: Copy README to all packages
run: |
echo "Copying README.md to all packages"
for package_dir in packages/*/; do
if [ -f "${package_dir}package.json" ]; then
echo "Copying README.md to ${package_dir}"
cp README.md "${package_dir}README.md"
fi
done
- name: Publish to npm using Changesets
run: npx changeset publish --no-git-tag
98 changes: 49 additions & 49 deletions .github/workflows/push-docker.yml
Original file line number Diff line number Diff line change
@@ -1,50 +1,50 @@
name: Build and Push Docker Image

permissions:
contents: read
id-token: write

on:
release:
types: [published]

jobs:
build-and-push:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@885d1462b80bc1c1c7f0b00334ad271f09369c55

- name: Login to DockerHub
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ vars.DOCKERHUB_REPO }}

- name: Build and push Docker image
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
with:
context: .
file: ./docker/Dockerfile
push: true
build-args: GITHUB_REF=${{ github.ref_name }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64

- uses: shrink/actions-docker-extract@f97780187d59e88f06a98b166a7e700c0f400314
id: extract
with:
image: ${{ vars.DOCKERHUB_REPO }}
path: /usr/share/nginx/html/.
name: Build and Push Docker Image
permissions:
contents: read
id-token: write
on:
release:
types: [published]
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@885d1462b80bc1c1c7f0b00334ad271f09369c55
- name: Login to DockerHub
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ vars.DOCKERHUB_REPO }}
- name: Build and push Docker image
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
with:
context: .
file: ./docker/Dockerfile
push: true
build-args: GITHUB_REF=${{ github.ref_name }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64
- uses: shrink/actions-docker-extract@f97780187d59e88f06a98b166a7e700c0f400314
id: extract
with:
image: ${{ vars.DOCKERHUB_REPO }}
path: /usr/share/nginx/html/.
destination: dist
Loading