Skip to content

Delete src/assets/icons/.DS_Store #15

Delete src/assets/icons/.DS_Store

Delete src/assets/icons/.DS_Store #15

Workflow file for this run

name: Deploy app
on:
push:
branches:
- master
jobs:
build:
name: Build App
runs-on: ubuntu-latest
steps:
- name: Import commit files
uses: actions/checkout@master
- name: Get yarn cache # https://github.com/actions/cache/blob/master/examples.md#node---yarn
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v4
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-
- name: Create .env file
run: |
touch .env
echo API_KEY = ${{ secrets.API_KEY }} >> .env
echo CHANNEL_ID = ${{ secrets.CHANNEL_ID }} >> .env
echo REFERER = ${{ secrets.REFERER }} >> .env
- name: Install Dependencies
run: yarn install
- name: Build
run: yarn build
- name: Upload bundle
uses: actions/upload-artifact@master
with:
name: dist # Upload artifact with name `dist`
path: dist # Upload content of `dist` folder
- name: Debug Files
run: ls
deploy:
name: Deploy App
runs-on: [ubuntu-latest]
needs: [build]
steps:
- name: Download bundle
uses: actions/download-artifact@master
with:
name: dist # Download artifact named `my_artifact_name` (matches build step: Upload bundle)
path: dist # Optional, downloads to current working directory under folder {artifact_name} if not specified
- name: Debug Files
run: ls
- name: copy file via ssh password
uses: appleboy/scp-action@v0.1.7
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: ${{ secrets.SSH_PORT }}
source: "dist/*"
target: "/home/u825938081/domains/devdojo.it/public_html"
rm: true
strip_components: 1