Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1493 from tokyo-metropolitan-gov/staging
Browse files Browse the repository at this point in the history
Staging から Development への同期
  • Loading branch information
halsk committed Mar 15, 2020
2 parents 47dc95c + d8c597b commit 7439bdd
Show file tree
Hide file tree
Showing 10 changed files with 42 additions and 8 deletions.
34 changes: 32 additions & 2 deletions .github/workflows/ogp_builder.yml
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- staging
- fix-ogp-size

jobs:
build:
Expand Down Expand Up @@ -32,4 +31,35 @@ jobs:
uses: actions/upload-artifact@v1
with:
name: ogp
path: ogp
path: ogp
upload:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
ref: staging
- name: Download ogp images
uses: actions/download-artifact@v1
with:
name: ogp
- name: Commit files
run: |
mv ogp/* static/
rm -rf ogp
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add static
git commit -m "Add changes"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: deploy/new_ogp
- name: Create Pull Request
uses: peter-evans/create-pull-request@v2
with:
title: '[DEPLOY] OGP refresh pull request'
token: ${{ secrets.GITHUB_TOKEN }}
branch: deploy/new_ogp
base: staging
12 changes: 7 additions & 5 deletions layouts/default.vue
@@ -1,10 +1,12 @@
<template>
<v-app class="app">
<div v-if="loading" class="loader">
<img src="/logo.svg" alt="東京都" />
<scale-loader color="#00A040" />
</div>
<div v-else-if="hasNavigation" class="appContainer">
<v-overlay v-if="loading" color="#F8F9FA" opacity="1" z-index="9999">
<div class="loader">
<img src="/logo.svg" alt="東京都" />
<scale-loader color="#00A040" />
</div>
</v-overlay>
<div v-if="hasNavigation" class="appContainer">
<div class="naviContainer">
<SideNavigation
:is-navi-open="isOpenNavigation"
Expand Down
4 changes: 3 additions & 1 deletion pages/cards/_card.vue
Expand Up @@ -167,7 +167,9 @@ export default {
},
head() {
const url = 'https://stopcovid19.metro.tokyo.lg.jp'
const ogpImage = url + '/ogp-' + this.$route.params.card + '.png'
const timestamp = new Date().getTime()
const ogpImage =
url + '/ogp-' + this.$route.params.card + '.png?t=' + timestamp
const description =
this.updatedAt +
' 更新 | ' +
Expand Down
Binary file modified static/ogp-agency.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/ogp-attributes-of-confirmed-cases.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/ogp-details-of-confirmed-cases.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/ogp-number-of-confirmed-cases.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/ogp-number-of-reports-to-covid19-consultation-desk.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/ogp-number-of-tested.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/ogp-predicted-number-of-toei-subway-passengers.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7439bdd

Please sign in to comment.