Skip to content

Minor: Update portfolio to include Advent of Code #72

Minor: Update portfolio to include Advent of Code

Minor: Update portfolio to include Advent of Code #72

Workflow file for this run

name: Deploy to Mew151.net
on:
push:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
env:
ABBR: ${{ secrets.ABBR }}
COMPANY_FULLNAME: ${{ secrets.COMPANY_FULLNAME }}
SITE_DOMAIN: ${{ secrets.SITE_DOMAIN }}
EMAIL: ${{ secrets.EMAIL }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: ⚙️ Install utilities
run: npm install
- name: 🍹 Build TypeScript / Sass
run: npm run build
- name: 📰 Build feed
run: npm run rss
- name: 💼 Prepare Portfolio
run: npm run portfolio-prepare
- name: 🐱📄💼 Run Portfolio Deploy
uses: bcomnes/deploy-to-neocities@v1.1.4
with:
api_token: ${{ secrets.PORTFOLIO_API_KEY }}
cleanup: false
dist_dir: src/portfolio
- name: 🥳 Prepare mew151.net
run: npm run mew151-prepare
- name: 📂 Sync files
uses: SamKirkland/FTP-Deploy-Action@4.2.0
with:
server: ${{ secrets.ftp_server }}
username: ${{ secrets.ftp_user }}
password: ${{ secrets.ftp_password }}
local-dir: ./src/
server-dir: ./
- name: 🐱 Prepare Neocities Deploy
run: npm run neocities-prepare
- name: 🐱🛠️🪞 Deploy to Neocities Mirror
uses: bcomnes/deploy-to-neocities@v1.1.4
with:
api_token: ${{ secrets.NEOCITIES_API_TOKEN }}
cleanup: false
dist_dir: src
- name: 🌙 Build text versions of site
run: npm run generate-text
- name: 💎🌌 Deploy Gemini
uses: appleboy/scp-action@v0.1.4
with:
host: ${{ secrets.GMI_HOST }}
username: ${{ vars.GMI_USER }}
password: ${{ secrets.GMI_PASSWORD }}
port: ${{ secrets.GMI_PORT }}
source: "text/gemini/build"
target: ${{ secrets.GMI_DIRECTORY }}
strip_components: 3
overwrite:
- name: ⛳🌌 Deploy Gopher
uses: appleboy/scp-action@v0.1.4
with:
host: ${{ secrets.GMI_HOST }}
username: ${{ vars.GMI_USER }}
password: ${{ secrets.GMI_PASSWORD }}
port: ${{ secrets.GMI_PORT }}
source: "text/gopher/build"
target: ${{ secrets.GOPHER_DIRECTORY }}
strip_components: 3
overwrite:
- name: 🧾🌌 Deploy HTML to text.mew151.net
uses: appleboy/scp-action@v0.1.4
with:
host: ${{ secrets.GMI_HOST }}
username: ${{ vars.GMI_USER }}
password: ${{ secrets.GMI_PASSWORD }}
port: ${{ secrets.GMI_PORT }}
source: "text/www"
target: ${{ secrets.TEXT_WWW_DIRECTORY }}
strip_components: 2
overwrite: