Skip to content

Commit

Permalink
fix: deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Salzmann committed May 12, 2024
1 parent ad51730 commit 29c0d6d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/deploy-now.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
jobs:
deploy-now:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
# - name: Fetch project data
# uses: ionos-deploy-now/retrieve-project-info-action@v1
Expand Down Expand Up @@ -40,11 +43,18 @@ jobs:
npm ci
npm run build
- name: Upload static files
uses: actions/upload-pages-artifact

- name: Deployment
uses: actions/deploy-pages
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
# Upload build directory content
path: 'docs/'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# - name: Deploy to Github-pages
# # if: ${{ steps.project.outputs.deployment-enabled == 'true' }}
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "portfolio",
"version": "0.0.0",
"homepage": "https://densalzmann.github.io/portfolio",
"scripts": {
"ng": "ng",
"start": "ng serve",
Expand Down

0 comments on commit 29c0d6d

Please sign in to comment.