Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create deploy-v11.yml #2292

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/deploy-v11.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Deployment status

on:
workflow_dispatch:
inputs:
name:
description: 'Reason'
push:
branches:
- v11

jobs:
build:
runs-on: macos-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.x
uses: actions/setup-node@v2-beta
with:
node-version: 12.x

- name: Install packages
run: yarn install --frozen-lockfile --network-timeout 300000

- name: Build site
run: yarn build:clean

- name: Install IBM Cloud CLI
run: curl -fsSL https://clis.cloud.ibm.com/install/osx | sh

- name: Install Cloud Foundry CLI
run: ibmcloud cf install -v 6.51.0

- name: Login to ibmcloud
env:
API_KEY: ${{ secrets.API_KEY }}
run:
ibmcloud login -a "https://cloud.ibm.com" -u apikey -p "$API_KEY" -o
"carbon-design-system" -s "production" -r "us-south"

- name: Deploy website
run: |
ibmcloud cf v3-zdt-push carbon-website-v11 -b https://github.com/cloudfoundry/nginx-buildpack.git