-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish to cloudfront with github actions
- Loading branch information
Showing
3 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Publish to Cloudfront | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
|
||
jobs: | ||
publish: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '3.0' # Not needed with a .ruby-version file | ||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | ||
- name: Install dependencies | ||
run: gem install json github-pages jekyll-github-metadata minitest | ||
- name: Build | ||
run: jekyll build | ||
|
||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.10' | ||
- name: Install AWS CLI | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install awscli | ||
- run: aws s3 sync _site s3://ulauncher.io --region us-east-1 --cache-control max-age=0 --acl public-read | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
- name: Invalidate Cloudfront | ||
run: aws cloudfront create-invalidation --distribution-id EUJKQR38BVSMX --paths "/*" | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
name: ulauncher.io | ||
description: Ulauncher App | ||
exclude: ['README.md', 'run-locally.sh', 'build.sh', 'LICENSE.txt', 'travis.yml'] | ||
exclude: ['README.md', 'Dockerfile', 'jekyll', 'run-locally.sh', 'build.sh', 'LICENSE.txt', 'travis.yml'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,12 +46,11 @@ <h1><a href="/#"><span class="ulauncher-logo">{% include ulauncher.svg %}</span> | |
<div class="container"> | ||
<section> | ||
<header> | ||
<h2>Get in touch</h2> | ||
<h2>Feedback</h2> | ||
<span class="byline">Let us know what you think about Ulauncher</span> | ||
</header> | ||
<ul class="contact"> | ||
<li><a href="https://twitter.com/UlauncherApp" class="fab fa-twitter"><span>Twitter</span></a></li> | ||
<li><a href="mailto:[email protected]" class="fas fa-envelope"><span>Email</span></a></li> | ||
<li><a href="https://github.com/Ulauncher/Ulauncher/" class="fab fa-github"><span>Github</span></a></li> | ||
</ul> | ||
</section> | ||
|