Skip to content

Commit 1593fe3

Browse files
committedOct 29, 2024
cleanup
1 parent aac83f9 commit 1593fe3

File tree

1 file changed

+1
-57
lines changed

1 file changed

+1
-57
lines changed
 

‎.github/workflows/preview.yml

+1-57
Original file line numberDiff line numberDiff line change
@@ -22,60 +22,4 @@ jobs:
2222
matrix-config: ${{ matrix.environment.config }}
2323
secrets:
2424
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
25-
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
26-
# environment:
27-
# name: development
28-
# url: https://dev-design.va.gov/${{ github.event.number }}
29-
# steps:
30-
# - uses: actions/checkout@v2
31-
# with:
32-
# fetch-depth: 0
33-
# - name: Use Node.js 16.x
34-
# uses: actions/setup-node@v2
35-
# with:
36-
# node-version: 16.x
37-
# cache: 'yarn'
38-
# - uses: ruby/setup-ruby@v1
39-
# with:
40-
# ruby-version: 2.7.5 # Not needed with a .ruby-version file
41-
# bundler-cache: true # runs 'bundle install' and caches installed gems automatically
42-
# - run: yarn install
43-
# - run: yarn run build
44-
# - run: bundle exec jekyll build --config _config.yml,jekyll-configs/${{ matrix.environment.config }} --baseurl /${{ github.event.number }}
45-
# - name: Make BUILD.txt file
46-
# # The -e flag enables the interpretation of the \n newline character
47-
# run: |
48-
# echo -e "REF=${{ github.sha }}\n\
49-
# BUILD_ID=${{ github.run_id }}\n\
50-
# BUILDTIME=$(date)" > _site/BUILD.txt
51-
# # We are taking these extra steps due to some differences between Jekyll and AWS S3.
52-
# # To access a .html file served from S3, the URL needs to have the .html extension.
53-
# # We're removing the extension to make the URLs prettier.
54-
# # More context:
55-
# # https://simpleit.rocks/ruby/jekyll/tutorials/having-pretty-urls-in-a-jekyll-website-hosted-in-amazon-s3/
56-
# - name: Remove .html extension on non-index files
57-
# run: |
58-
# find _site/ -type f ! -iname 'index.html' -iname '*.html' \
59-
# -print0 | while read -d $'\0' f; do mv "$f" "${f%.html}"; done
60-
61-
# - uses: aws-actions/configure-aws-credentials@v4
62-
# with:
63-
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
64-
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
65-
# aws-region: "us-gov-west-1"
66-
# - name: Sync extensionless html files with correct type
67-
# run: |
68-
# aws s3 sync _site s3://${{ matrix.environment.url }} \
69-
# --acl public-read \
70-
# --delete \
71-
# --exclude "storybook/*" \
72-
# --exclude "*.*" \
73-
# --content-type "text/html"
74-
# - name: Sync remaining files
75-
# run: |
76-
# aws s3 sync _site s3://${{ matrix.environment.url }} \
77-
# --acl public-read \
78-
# --delete \
79-
# --exclude "*" \
80-
# --include "*.*" \
81-
# --exclude "storybook/*"
25+
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

0 commit comments

Comments
 (0)