Skip to content

Sort NPC actions with D&D (Drag & Drop) (#272) #705

Sort NPC actions with D&D (Drag & Drop) (#272)

Sort NPC actions with D&D (Drag & Drop) (#272) #705

Workflow file for this run

# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Deploy Staging
on:
push:
branches: [develop]
pull_request:
branches: [develop]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js 16
uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'npm'
- run: npm i -g @quasar/cli@latest
- run: npm ci
- name: Create env file
run: |
cat << EOF >> .env.production.local
${{ secrets.STAGING_ENV_FILE }}
EOF
# - run: npm run build in debug mode --if-present
- run: quasar build -m ssr -d --if-present
# Login against a Docker registry except on PR
# https://github.com/docker/login-action
- name: Log into registry Docker Hub
# if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v3
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: harmlesskey/harmlesskey_staging