commit 4fe0af4e6a4a15ee4796a857e79ad0fe9b72c0f1 Author: Dylan <dylanpdx@gmail.com> Date: Wed Dec 28 18:09:25 2022 +0000 Misc. changes to MP4 Looping function commit 42ef8845c38c5a74e56da3c5f035d5a6c091c86a Author: Dylan <dylanpdx@gmail.com> Date: Tue Dec 27 20:00:22 2022 +0000 Abandoning raw gif conversion for now; looping vid instead commit b61938b340a02ac8cfab02048b7e9deaf87edbf5 Author: Dylan <dylanpdx@gmail.com> Date: Tue Dec 27 19:38:58 2022 +0000 More work on WIP gif generation commit 3bc6e7e0da1ce6ae905c80bbbaaa55a68050de52 Author: Dylan <dylanpdx@gmail.com> Date: Mon Dec 26 14:46:46 2022 +0000 Experimental gif conversion
68 lines
2.0 KiB
YAML
68 lines
2.0 KiB
YAML
name: Deploy
|
|
|
|
permissions:
|
|
id-token: write
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: prod
|
|
cancel-in-progress: true
|
|
|
|
on:
|
|
push:
|
|
branches: [prod]
|
|
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
environment: prod
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Configure Node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: '16.x'
|
|
cache: 'npm'
|
|
|
|
- name: Install packages
|
|
run: npm install -g serverless
|
|
|
|
- name: Install serverless-wsgi
|
|
run: serverless plugin install -n serverless-wsgi
|
|
|
|
- name: Install serverless-python-requirements
|
|
run: serverless plugin install -n serverless-python-requirements
|
|
|
|
- name: Install serverless-plugin-common-excludes
|
|
run: serverless plugin install -n serverless-plugin-common-excludes
|
|
|
|
- name: Install serverless-plugin-include-dependencies
|
|
run: serverless plugin install -n serverless-plugin-include-dependencies
|
|
|
|
- name: Set up Python 3.8
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: "3.8"
|
|
|
|
- name: Configure AWS credentials
|
|
uses: aws-actions/configure-aws-credentials@v1
|
|
with:
|
|
role-to-assume: arn:aws:iam::001057775987:role/GithubActionsOIDC-vxtwitter-Role-ZYPHWRSFIP80
|
|
role-duration-seconds: 900
|
|
aws-region: us-east-1
|
|
|
|
- name: Deploy
|
|
run: serverless deploy --verbose
|
|
env:
|
|
VXTWITTER_LINK_CACHE: ${{ secrets.VXTWITTER_LINK_CACHE }}
|
|
VXTWITTER_DATABASE: ${{ secrets.VXTWITTER_DATABASE }}
|
|
VXTWITTER_METHOD: ${{ secrets.VXTWITTER_METHOD }}
|
|
VXTWITTER_COLOR: ${{ secrets.VXTWITTER_COLOR }}
|
|
VXTWITTER_APP_NAME: ${{ secrets.VXTWITTER_APP_NAME }}
|
|
VXTWITTER_REPO: ${{ secrets.VXTWITTER_REPO }}
|
|
VXTWITTER_URL: ${{ secrets.VXTWITTER_URL }}
|
|
VXTWITTER_COMBINATION_METHOD: ${{ secrets.VXTWITTER_COMBINATION_METHOD }}
|
|
VXTWITTER_GIF_CONVERT_API: ${{ secrets.VXTWITTER_GIF_CONVERT_API }}
|