Skip to content

Commit

Permalink
chore: Update GitHub Actions workflows for push events
Browse files Browse the repository at this point in the history
  • Loading branch information
nalbam committed Aug 16, 2024
1 parent de1b4f6 commit fedd3a3
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 1 deletion.
53 changes: 53 additions & 0 deletions .github/workflows/push-toast-sh.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: push-toast-sh

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.toast.sh"
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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build
name: push-toaster-run

on:
push:
Expand Down

0 comments on commit fedd3a3

Please sign in to comment.