Skip to content

chore: Update GitHub Actions workflows for push events #1

chore: Update GitHub Actions workflows for push events

chore: Update GitHub Actions workflows for push events #1

name: push-toaster-run
on:
push:
branches:
- main
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Bump Version
uses: opspresso/action-builder@master
with:
args: --version
- name: Package
run: |
bash ./package.sh
- name: Publish to AWS S3
uses: opspresso/action-builder@master
with:
args: --publish
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: "ap-northeast-2"
FROM_PATH: "./target/publish"
DEST_PATH: "s3://www.toaster.run"
OPTIONS: "--acl public-read"
- name: Release to GitHub
uses: opspresso/action-builder@master
with:
args: --release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ASSET_PATH: ./target/release
- name: Post to Slack
uses: opspresso/action-builder@master
with:
args: --slack
env:
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
JSON_PATH: ./target/slack_message.json