diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 9d1ad58df0..0000000000 --- a/.travis.yml +++ /dev/null @@ -1,37 +0,0 @@ -sudo: required -dist: trusty -language: ruby -rvm: -- 2.5.1 - -env: - - INJECT_CV_DOWNLOAD_LINK=NO - -script: - - "bundle exec jekyll build" - - "ruby make_pdf.rb" - -branches: - only: - - gh-pages - -install: - - "bundle install" - - "gem install pdfkit" - -before_install: - - "export DISPLAY=:99.0" - - "sh -e /etc/init.d/xvfb start" - - sudo apt-get -qq update - - sudo apt-get install -y xfonts-75dpi - - wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb - - sudo dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.deb - -deploy: - provider: releases - api_key: $GITHUB_OAUTH_TOKEN - file: "./_site/cv.pdf" - skip_cleanup: true - name: Build $(date +'%d.%m.%Y %R') - on: - branch: gh-pages diff --git a/README.md b/README.md index 697ce877e9..d41ffb6f37 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,6 @@ |---------------------------- |------------------| | [eralpkaraduman.github.io/cv] | [latest release] | -[![Build Status](https://travis-ci.org/eralpkaraduman/cv.svg?branch=gh-pages)](https://travis-ci.org/eralpkaraduman/cv) - **If you want to have your own, just fork this repo and modify the `index.md`.** This is a fairly modified version of @@ -30,16 +28,20 @@ replica of github's markdown style. And it is able to auto-generate a PDF versio ## Automatic PDF version generation -Also if you set up Travis CI, i configured it up so after every commit, travis will print it to `cv.pdf` then create a release on github. You can always link to the latest release by adding the sufffix `/releases/latest` to repo url. +If you configure the GitHub Action, it creates a pdf version then create a release on github. You can always link to the latest release by adding the sufffix `/releases/latest` to repo url. For example; github.com/your-username-here/cv[/releases/latest](https://github.com/eralpkaraduman/cv/releases/latest) To enable this; - Go to [github.com/settings/tokens](https://github.com/settings/tokens) - Generate a personal access token, give it `public_repo` permission -- Go to travis-ci.org settings page of you repo -- Enter the token as Environment Variable with the key `GITHUB_OAUTH_TOKEN` -- If everything was right, it will create a release under `/releases` page of your github repo +- Go to the secrets settings of this github repo (the one that is your clone) + - https://github.com//cv/settings/secrets/actions + - Remember to change the username in the url above +- Click "New repository secret" +- Name it `GH_OAUTH_TOKEN` +- Paste the token you generated in the earlier step here +- Next time you make a change, it should create a new release under `/releases` page of your github repo - Latest release is conveniently always at `/releases/latest` @@ -52,7 +54,7 @@ This link won't be generated in the PDF itself for several reasons; - Lack of necessity, since you have the pdf there's need to download it again. - I didn't want to deal with all the troubles coming with executing javascript in pdf generation context - Travis CI blocks the request to github API i guess? -- I disabled javascript for wkhtmltopdf, see 2 reasons above. +- I disabled javascript on wkhtmltopdf, see 2 reasons above. ## Running jekyll locally