mirror of
https://github.com/XcodesOrg/XcodesApp.git
synced 2026-04-19 13:05:53 +00:00
Merge pull request #61 from RobotsAndPencils/fix-appcast
Manually build and deploy the appcasts
This commit is contained in:
commit
21d6ef832b
1 changed files with 36 additions and 13 deletions
49
.github/workflows/appcast.yml
vendored
49
.github/workflows/appcast.yml
vendored
|
|
@ -6,22 +6,45 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
jekyll:
|
jekyll:
|
||||||
runs-on: ubuntu-16.04
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout 🛎
|
||||||
|
uses: actions/checkout@v2
|
||||||
- uses: actions/cache@v2
|
|
||||||
with:
|
with:
|
||||||
path: vendor/bundle
|
# If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
|
- name: Cache 📦
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: AppCast/vendor/bundle
|
||||||
key: ${{ runner.os }}-gems-v1.0-${{ hashFiles('AppCast/Gemfile') }}
|
key: ${{ runner.os }}-gems-v1.0-${{ hashFiles('AppCast/Gemfile') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-gems-
|
${{ runner.os }}-gems-
|
||||||
|
|
||||||
- uses: helaili/jekyll-action@v2
|
- name: Ruby ♦️
|
||||||
env:
|
uses: actions/setup-ruby@v1
|
||||||
JEKYLL_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
ruby-version: '2.7'
|
||||||
gem_src: 'AppCast'
|
|
||||||
jekyll_src: 'AppCast'
|
- name: Bundler 💎
|
||||||
target_branch: 'gh-pages'
|
working-directory: AppCast
|
||||||
|
env:
|
||||||
|
BUNDLE_PATH: vendor/bundle
|
||||||
|
run: |
|
||||||
|
gem install bundler
|
||||||
|
bundle install
|
||||||
|
|
||||||
|
- name: Build 🛠
|
||||||
|
working-directory: AppCast
|
||||||
|
env:
|
||||||
|
BUNDLE_PATH: vendor/bundle
|
||||||
|
JEKYLL_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: bundle exec jekyll build
|
||||||
|
|
||||||
|
- name: Publish 🚀
|
||||||
|
uses: JamesIves/github-pages-deploy-action@releases/v3
|
||||||
|
with:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
BRANCH: gh-pages
|
||||||
|
FOLDER: AppCast/_site
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue