Fauntleroy / openra-web

Proposal for the OpenRA website.
2 stars 2 forks source link

Deployment does not generate the appimages.json or versions.json metadata #12

Open pchote opened 3 years ago

pchote commented 3 years ago

https://github.com/OpenRA/openra.github.io shows the expected layout for the deployed site.

Here's a stripped down hack I use for another project that keeps an orphaned gh-pages branch with the compiled output that doesn't share content with the master branch. This might be a useful base to start with:

name: Deploy Website

on:
  push:
    branches:
      - master

jobs:
  linux:
    name: Deploy Website
    runs-on: ubuntu-18.04
    steps:
      - name: Clone Repository
        uses: actions/checkout@v2

      - name: Compile and Deploy
        run: |
          git fetch origin
          git checkout --orphan gh-pages
          git rm -rf .
          git checkout master -- <any files that we want to preserve from the master branch>
          # <Commands to generate the new branch structure>
          git config --local user.email "foo@foo.foo"
          git config --local user.name "foo"
          git add --all
          git commit -m "Deploy to GitHub Pages"
          git push origin +gh-pages
pchote commented 3 years ago

This ties in with more general questions/strategy about how we handle the migration from the old website.

I think the simplest option in the immediate short term will be to keep this repo separate from OpenRAWeb and configure GH Actions to compile and deploy the static files to https://github.com/OpenRA/openra.github.io similarly to the current setup. This will get us over the initial deployment hump and let us consider the best strategy for the migration under less time pressure.

I'll put together the action workflow to do this and can push it once we have transitioned the repo over to the OpenRA org.