Skip to content

Commit

Permalink
Added .gitattributes file
Browse files Browse the repository at this point in the history
  • Loading branch information
harshdoesdev committed Jan 17, 2024
1 parent 3ba388e commit fb5f13b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.packages/** linguist-vendored
11 changes: 9 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,21 @@ jobs:
run: git pull
- uses: FranzDiebold/github-env-vars-action@v2
- run: sh -c "$(curl -fsSL https://fastn.com/install.sh)"
- name: Get latest commit information
id: get_commit
run: echo "::set-output name=commit_sha::$(git rev-parse HEAD)"
- name: Get raw zipball URL
id: get_zip_url
run: |
echo "::set-output name=zip_url::https://github.com/${{ github.repository }}/archive/${{ steps.get_commit.outputs.commit_sha }}.zip"
- name: Build the pages with fastn
run: |
echo "Using '$CI_REPOSITORY_NAME_SLUG/' as the base while building"
# To deploy the website using GitHub Pages, use the below command
fastn build --edition=2023 --base=/$CI_REPOSITORY_NAME/
fastn build --zip-url=${{ steps.get_zip_url.outputs.zip_url }} --base=/$CI_REPOSITORY_NAME/
# To deploy the website using Custom Domain, use the below command and comment
#out the above command when deploying through GitHub Pages
#fastn build --edition=2023 --base=/
#fastn build --zip-url=${{ steps.get_zip_url.outputs.zip_url }} --base=/
- name: copy CNAME if found
run: '(test -f CNAME && cp CNAME .build) || echo "CNAME does not exist, skipping step"'
- name: Deploy to GitHub Pages
Expand Down

0 comments on commit fb5f13b

Please sign in to comment.