Skip to content

Iss101 mobile responsiveness #112

Iss101 mobile responsiveness

Iss101 mobile responsiveness #112

name: "Deploy a branch version of the website"
on:
pull_request:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Skip workflow for PRs from forks
shell: bash
run: |
if [ "${{ github.event.pull_request.head.repo.fork }}" = "true" ]; then
echo "This workflow is not supported for PRs from forks."
exit 0
fi
- name: Extract branch name
shell: bash
run: echo "BRANCH_NAME=$(echo ${{ github.head_ref }} | sed 's/\//-/g')" >> $GITHUB_ENV
- name: Debug print branch name
shell: bash
run: echo "BRANCH_NAME=${{ env.BRANCH_NAME }}"
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: |
npm install
npm install -D postcss postcss-cli autoprefixer tailwindcss
- name: Setup Hugo
uses: ./.github/actions/setup-hugo
- name: Setup PageFind
uses: ./.github/actions/setup-pagefind
- name: Build the website
run: BASEURL="https://webtest.ivoa.info/v/${{ env.BRANCH_NAME }}" make html
- name: Upload the branch version of the website
uses: Dylan700/sftp-upload-action@latest
with:
username: webstage
server: web.ivoa.net
port: ${{ secrets.SFTP_PORT }}
key: ${{ secrets.STAGE_ID }}
uploads: |
./public/ => ./ivoa-web-stage/v/${{ env.BRANCH_NAME }}
timeout: 120s

Check failure on line 57 in .github/workflows/deploy_version.yaml

View workflow run for this annotation

GitHub Actions / Deploy a branch version of the website

Invalid workflow file

The workflow is not valid. .github/workflows/deploy_version.yaml (Line: 57, Col: 9): Unexpected value 'timeout'