diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml new file mode 100644 index 00000000..afa15910 --- /dev/null +++ b/.github/workflows/deploy-prod.yml @@ -0,0 +1,37 @@ +name: Deploy Eleventy on prod via rsync + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + build: + runs-on: ubuntu-olatest + steps: + # Check-out the repository under $GITHUB_WORKSPACE. + - uses: actions/checkout@master + + - name: Install dependencies. + run: npm ci + + - name: Lint with fix. + run: npx eslint --fix + + # Build the website with Eleventy. + - name: Build Eleventy. + run: npm run build + + # Rsync files via SSH. + - name: Sync files with server. + uses: burnett01/rsync-deployments@master + with: + switches: -rlD --delete --exclude='.htaccess' + path: _site/ + remote_path: ${{ secrets.REMOTE_PATH_PROD }} + remote_host: ${{ secrets.REMOTE_HOST_PROD }} + remote_port: ${{ secrets.REMOTE_PORT_PROD }} + remote_user: ${{ secrets.REMOTE_USER_PROD }} + remote_key: ${{ secrets.REMOTE_PRIVATE_KEY_PROD }} + remote_key_pass: ${{ secrets.REMOTE_PRIVATE_KEY_PASS_PROD }} diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index 0099b9c1..ef95a8cc 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -30,8 +30,8 @@ jobs: switches: -rlD --delete --exclude='.htaccess' path: _site/ remote_path: ${{ secrets.REMOTE_PATH_STAGING }} - remote_host: ${{ secrets.REMOTE_HOST }} - remote_port: ${{ secrets.REMOTE_PORT }} - remote_user: ${{ secrets.REMOTE_USER }} - remote_key: ${{ secrets.REMOTE_PRIVATE_KEY }} - remote_key_pass: ${{ secrets.REMOTE_PRIVATE_KEY_PASS }} + remote_host: ${{ secrets.REMOTE_HOST_STAGING }} + remote_port: ${{ secrets.REMOTE_PORT_STAGING }} + remote_user: ${{ secrets.REMOTE_USER_STAGING }} + remote_key: ${{ secrets.REMOTE_PRIVATE_KEY_STAGING }} + remote_key_pass: ${{ secrets.REMOTE_PRIVATE_KEY_PASS_STAGING }} diff --git a/CNAME b/CNAME deleted file mode 100644 index 3af0eb55..00000000 --- a/CNAME +++ /dev/null @@ -1 +0,0 @@ -css-naked-day.org \ No newline at end of file