pmndrs / assets Goto Github PK
View Code? Open in Web Editor NEW๐ฆ Importable base64 encoded CC0 assets
Home Page: https://codesandbox.io/s/pmndrs-assets-5p5c47
License: Creative Commons Zero v1.0 Universal
๐ฆ Importable base64 encoded CC0 assets
Home Page: https://codesandbox.io/s/pmndrs-assets-5p5c47
License: Creative Commons Zero v1.0 Universal
Setup a Docker image for the runner, with an imagemagick version supporting DWAB compression
https://docs.github.com/en/actions/using-jobs/running-jobs-in-a-container
https://chat.openai.com/share/62aa46ca-9f23-4eb6-8f31-e45ce9add14b
FROM node:18-alpine
RUN apk update && apk add --no-cache imagemagick make openssl git
WORKDIR /app
# USER node
name: release
on:
push:
branches:
- 'main'
# Cancel any previous run (see: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency)
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
changes-job:
runs-on: ubuntu-latest
outputs:
dockerfile: ${{ steps.changes.outputs.dockerfile }}
steps:
- uses: actions/checkout@v3
- id: changes
uses: dorny/paths-filter@v2
with:
filters: |
dockerfile:
- 'Dockerfile'
build-push-job:
needs: changes-job
if: needs.changes-job.outputs.dockerfile == 'true'
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository }}
- uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
release-job:
needs: build-push-job
if: always() && needs.build-push-job.result == 'success' || needs.build-push-job.result == 'skipped'
runs-on: ubuntu-latest
container:
image: 'ghcr.io/${{ github.repository }}:main'
# options: --user root
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: 'yarn'
- id: main
run: |
yarn install
yarn build
yarn release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.