Skip to content

feat: prevent text select and right click context menu, fix deployment #34

feat: prevent text select and right click context menu, fix deployment

feat: prevent text select and right click context menu, fix deployment #34

Workflow file for this run

name: Deploy to hosting provider
on:
push:
tags:
- "v*"
# Allows running this workflow manually from the Actions tab
workflow_dispatch:
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy:
runs-on: ubuntu-latest
env:
PROJECT_ARTIFACT: me-ancliz
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set Tag
id: set_tag
run: |
TAG=${GITHUB_REF#refs/tags/}
echo "VERSION=${TAG}" >> $GITHUB_ENV
echo "VERSION=${TAG}" >> $GITHUB_OUTPUT
- name: Zip
run: |
zip -r "${{ env.PROJECT_ARTIFACT }}-$VERSION.zip" . -x ".*" -x "target/"
echo v $VERSION
echo artifact $PROJECT_ARTIFACT
ls
- name: SCP zip to server
uses: appleboy/[email protected]
env:
VERSION: ${{ steps.set_tag.outputs.VERSION }}
with:
host: ${{ secrets.HOST }}
port: ${{ secrets.PORT }}
username: ${{ secrets.USER }}
key: ${{ secrets.HOST_PRIVATE_KEY }}
source: ${{ env.PROJECT_ARTIFACT }}-${{ env.VERSION }}.zip
target: "/home/${{ secrets.USER }}/versions/"
- name: SSH and run deploy
uses: appleboy/[email protected]
env:
VERSION: ${{ steps.set_tag.outputs.VERSION }}
with:
host: ${{ secrets.HOST }}
port: ${{ secrets.PORT }}
username: ${{ secrets.USER }}
key: ${{ secrets.HOST_PRIVATE_KEY }}
script: ./deploy -f ${{ env.PROJECT_ARTIFACT }}-${{ env.VERSION }}.zip