Skip to content

Commit

Permalink
.editorconfigと.github/workflowsディレクトリに変更を追加 (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
omega-takai authored Mar 17, 2024
1 parent b7cf375 commit 3d6ac81
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 7 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_size = 2
indent_style = space
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false
10 changes: 3 additions & 7 deletions .github/workflows/create-tag.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
name: Creating A Tag

on:
pull_request:
types: [closed]
push:
branches:
- main

jobs:
constants:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true
outputs:
TAG_NAME: ${{ steps.set_constants.outputs.tag_name }}
steps:
Expand All @@ -23,10 +21,8 @@ jobs:
needs: [constants]
steps:
- uses: actions/checkout@v4
- run: |
echo ${{ github.event.pull_request.head.ref }}
echo ${{ github.event.pull_request.merged }}
- run: |
- name: Create tag
run: |
echo ${{ needs.constants.outputs.tag_name }}
git tag ${{ needs.constants.outputs.tag_name }}
git push origin ${{ needs.constants.outputs.tag_name }}
14 changes: 14 additions & 0 deletions .github/workflows/production.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Deploy web front to Prod

on:
release:
types: [published]

jobs:
notify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Echo
run: |
echo "Triggering deployment to production"

0 comments on commit 3d6ac81

Please sign in to comment.