Skip to content

Commit

Permalink
update github action deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
k27dong committed Jan 24, 2024
1 parent 1dc79f8 commit a3f49d0
Showing 1 changed file with 23 additions and 24 deletions.
47 changes: 23 additions & 24 deletions .github/workflows/auto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,30 +41,29 @@ jobs:
name: app
path: app

# deploy:
# name: Deploy to Heroku
# needs: build
# runs-on: ubuntu-latest

# steps:
# # - name: Checkout Git repository
# # uses: actions/checkout@v3
deploy:
name: Deploy to Heroku
needs: build
runs-on: ubuntu-latest

# - name: download assets
# uses: actions/download-artifact@v4
# with:
# name: app
steps:
- name: download assets
uses: actions/download-artifact@v4
with:
name: app

# - name: testing step
# run: ls -R
- name: Set up Git
run: |
git config --global user.name "k27dong"
git config --global user.email "me@kefan.me"
git init
git add -A
git commit -m "Deploy"
# - run: git init
# - run: ls -R
- uses: akhileshns/heroku-deploy@v3.13.15
with:
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
heroku_app_name: "k27dong-website"
heroku_email: "me@kefan.me"
appdir: "./app"
procfile: "web: ./app"
buildpack: "https://github.com/ph3nx/heroku-binary-buildpack.git"
- name: Heroku Deploy
env:
HEROKU_API_KEY: ${{secrets.HEROKU_API_KEY}}
run: |
curl https://cli-assets.heroku.com/install.sh | sh
heroku git:remote -a k27dong-website
git push heroku `git subtree split --prefix app master`:master --force

0 comments on commit a3f49d0

Please sign in to comment.