Skip to content

Add PNG images without background #14

Add PNG images without background

Add PNG images without background #14

Workflow file for this run

name: Build βš™ and Deploy πŸš€
on: [push, pull_request]
concurrency:
group: ${{ github.ref }}
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🚚
uses: actions/checkout@v4
- name: Setup Node.js βš—
uses: actions/setup-node@v4
with:
node-version: 20
- name: Determine node version β„–
id: node-version
run: |
echo "::set-output name=version::$(node -v)"
- name: Restore Cache πŸ“¦
uses: actions/cache@v4
id: cache
with:
path: node_modules
key: ${{ runner.os }}-node-${{ steps.node-version.outputs.version }}-${{ hashFiles('package-lock.json') }}
- name: Install dependencies 🌐
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci
# - name: Set DEVELOP_BRANCH env var
# if: github.ref == 'refs/heads/develop'
# run: |
# echo "DEVELOP_BRANCH=yes" >> $GITHUB_ENV
- name: Build πŸ› 
run: npm run build
- name: Run tests 🩺
run: npm run test
- name: Add build.txt πŸ—“
run: |
git log --pretty=format:'%h' -n 1 > dist/build.txt
echo >> dist/build.txt
date +%F_%T >> dist/build.txt
- name: Deploy πŸš€
if: github.ref == 'refs/heads/master'
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: dist # The folder the action should deploy.
single-commit: true
clean: true
# clean-exclude: |
# develop
# - name: Deploy to /develop πŸš€
# if: github.ref == 'refs/heads/develop'
# uses: JamesIves/[email protected]
# with:
# branch: gh-pages
# folder: dist
# target-folder: develop
# single-commit: true
# clean: true