remove unused gateways (#416) #463
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: | |
- master | |
# manual trigger | |
workflow_dispatch: | |
jobs: | |
bump_version: | |
name: Bump Version | |
runs-on: ubuntu-latest | |
outputs: | |
new_tag: ${{ steps.github_tag_action.outputs.new_tag }} | |
changelog: ${{ steps.github_tag_action.outputs.changelog }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Bump version and push tag | |
id: github_tag_action | |
uses: mathieudutour/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
release_branches: .* | |
create_release: | |
name: Create Release | |
runs-on: ubuntu-latest | |
needs: bump_version | |
# if: ${{ needs.bump_version.outputs.new_tag != null }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '12' | |
always-auth: true | |
registry-url: https://registry.npmjs.org | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Build the IPFS bundle | |
run: CSM_CLAIM_USER=${{ secrets.CSM_CLAIM_USER }} CSM_CLAIM_PASSWD=${{ secrets.CSM_CLAIM_PASSWD }} CRU_CLAIM_USER=${{ secrets.CRU_CLAIM_USER }} CRU_CLAIM_PASSWD=${{ secrets.CRU_CLAIM_PASSWD }} CSM_LOCKING_USER=${{ secrets.CSM_LOCKING_USER }} CSM_LOCKING_PASSWD=${{ secrets.CSM_LOCKING_PASSWD }} API_KEY=${{ secrets.API_KEY }} NODE_ENV=production yarn build:www | |
- name: Upload bundle | |
uses: appleboy/scp-action@master | |
with: | |
host: ${{ secrets.SSH_PRD_HOST }} | |
username: ${{ secrets.SSH_PRD_USER }} | |
key: ${{ secrets.SSH_PRIVATE_KEY }} | |
source: "packages/apps/build" | |
target: "~" | |
- name: Upgrade apps | |
uses: fifsky/ssh-action@master | |
with: | |
command: | | |
echo 'y' | sudo cp -rf packages/apps/build /usr/apps | |
sudo rm -rf packages | |
host: ${{ secrets.SSH_PRD_HOST }} | |
user: ${{ secrets.SSH_PRD_USER }} | |
key: ${{ secrets.SSH_PRIVATE_KEY }} |