Explore Free Account expansion “Wyrdin’s Apprentice” #827
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and deploy | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
env: | |
CXX: 'g++-4.8' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'npm' | |
- name: Install dependencies | |
run: | | |
sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev | |
npm ci | |
echo "$(npm bin)" >> $GITHUB_PATH | |
- name: Test | |
run: | | |
tibia-maps --version | |
tibia-maps --from-data=./data --output-dir=./minimap | |
tibia-maps --from-minimap=./minimap --output-dir=./data | |
# git status && git diff-index --quiet HEAD -- | |
git status | |
git diff | |
- name: Build dist | |
run: | | |
npm run build | |
- name: Set up SSH | |
uses: webfactory/ssh-agent@v0.4.1 | |
with: | |
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
- name: Deploy | |
uses: JamesIves/github-pages-deploy-action@releases/v3 | |
with: | |
SSH: true | |
SINGLE_COMMIT: true | |
BASE_BRANCH: main | |
BRANCH: gh-pages | |
FOLDER: dist |