Skip to content

Commit

Permalink
Merge pull request #274 from DecentralCardGame/fix/273-touchups
Browse files Browse the repository at this point in the history
Fix/273 touchups
  • Loading branch information
lxgr-linux authored Mar 8, 2024
2 parents a8a19d0 + ca4b5a7 commit 56f6ae9
Show file tree
Hide file tree
Showing 32 changed files with 203 additions and 1,396 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/main.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/test_deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Test CD

on:
pull_request:
types: [opened, labeled, unlabeled, synchronize]
workflow_dispatch:

jobs:
run_pull:
name: run pull
runs-on: ubuntu-latest
env:
# Setting an environment variable with the value of a configuration variable
LABEL: ${{
contains(github.event.pull_request.labels.*.name, 'deploy_5173') && 'deploy_5173' ||
(contains(github.event.pull_request.labels.*.name, 'deploy_5174') && 'deploy_5174' || 'none')
}}

steps:
- name: exit
if: ${{ env.LABEL == 'none' }}
run: |
exit 1
- name: install ssh keys
# check this thread to understand why its needed:
# https://stackoverflow.com/a/70447517
run: |
echo env.tag_name
install -m 600 -D /dev/null ~/.ssh/id_rsa
echo "${{ secrets.LXGR_DEPLOY_PRIV }}" > ~/.ssh/id_rsa
ssh-keyscan -H ${{ secrets.LXGR_HOST }} > ~/.ssh/known_hosts
- name: connect and pull
run: ssh ${{ secrets.LXGR_USER }}@${{ secrets.LXGR_HOST }} "cd ~/$LABEL && git checkout . && git fetch && git checkout ${{ github.event.pull_request.head.ref }} && git pull && npm i && npm run build && chgrp -R www-data ~/$LABEL && exit"
- name: cleanup
run: rm -rf ~/.ssh
Binary file removed public/BG.png
Binary file not shown.
325 changes: 0 additions & 325 deletions public/background.svg

This file was deleted.

Binary file removed public/sparkling_water.gif
Binary file not shown.
Loading

0 comments on commit 56f6ae9

Please sign in to comment.