mirror of
https://github.com/bitwarden/help
synced 2025-12-27 05:33:14 +00:00
cleanup old github pages deployments
This commit is contained in:
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
@@ -21,23 +21,12 @@ jobs:
|
||||
- name: Set up Jekyll
|
||||
run: gem install bundler jekyll
|
||||
|
||||
- name: Set up git credentials
|
||||
if: github.ref == 'refs/heads/master'
|
||||
env:
|
||||
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||
run: |
|
||||
git config --global credential.helper store
|
||||
echo "https://${ACCESS_TOKEN}:x-oauth-basic@github.com" >> ~/.git-credentials
|
||||
git config --global user.email "ci@bitwarden.com"
|
||||
git config --global user.name "Bitwarden CI"
|
||||
|
||||
- name: Print environment
|
||||
run: |
|
||||
node --version
|
||||
npm --version
|
||||
ruby --version
|
||||
jekyll --version
|
||||
git --version
|
||||
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v2
|
||||
@@ -49,10 +38,6 @@ jobs:
|
||||
if: github.ref != 'refs/heads/master'
|
||||
run: npm run build:prod
|
||||
|
||||
- name: Build site and deploy to gh-pages
|
||||
if: github.ref == 'refs/heads/master'
|
||||
run: npm run deploy
|
||||
|
||||
- name: Build site for S3
|
||||
if: github.ref == 'refs/heads/master'
|
||||
run: npm run build:prod:sub
|
||||
|
||||
Reference in New Issue
Block a user