From c07583dd37f53973a91babd9a5762b9c9b16a98c Mon Sep 17 00:00:00 2001 From: masarakki Date: Sat, 29 Jun 2024 01:43:16 +0900 Subject: [PATCH] init-actions --- .github/workflows/build.yml | 9 +++++++++ .github/workflows/deploy.yml | 13 +++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..f5ec988 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,9 @@ +name: build +on: + pull_request: + branches: "**" +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..bc084e6 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,13 @@ +name: deploy +on: + pull_request_target: + types: closed +permissions: + id-token: write + contents: read +jobs: + deploy: + if: github.event.pull_request.merged == true + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4